[fix] Add the error code in the responses of the APIs
lgrd opened this issue · comments
Now, we use the Error nodeJS class inside the errorManager. But it seems to be a misuse. For instance, error.code is always undefined when the error is created. So, when we want to send an error code inside the API response, there is none.