Typeof err.code
ThibaultRiviere opened this issue · 2 comments
ThibaultRiviere commented
From here: scality/Integration#465
We can see that the code is a string, should not be a number?
rahulreddy commented
On errors, we set the http code from the Arsenal error and write the Arsenal error to the body as well. So, it's the structure of our Arsenal error, which we know is weird.
rahulreddy commented
Also going by the convention here https://nodejs.org/dist/latest-v4.x/docs/api/errors.html#errors_error_code