commercetools / commercetools/nodejs

NodeJS client error code is http statuscode, not commercetools error code

Open
#1,655 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
77
Forks
70
PR merge metrics
No merged PRs in 30d

Description

I believe that since the HTTP statuscode is already available on both error.status and response.statusCode, the field error.code should contain the commercetools error code string, as documented on https://docs.commercetools.com/api/errors.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.