commercetools / commercetools/nodejs
NodeJS client error code is http statuscode, not commercetools error code
- Lingua principale
- JavaScript
- Stelle
- 77
- Fork
- 70
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Read the commercetools API errors documentation first, then inspect the Node.js client error-handling path where error.status, response.statusCode, and error.code are populated. Done means error.code contains the documented commercetools error code while the HTTP status remains available through the existing status fields.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, nodejs
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100