You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding additional info to the returned error seems like a good plain. I've been doing that for quite a while now for HTTP responses using: https://github.com/unshiftio/failure
Where I add things like statusCode, body and headers to the error object. It also automatically adds a toJSON method to the errors so you can easily JSON stringify them for logging purposes.
I am encountering an issue where Fullcontact returns a 503 (see https://www.fullcontact.com/developer/docs/#response-codes)
Now I need access to the headers of the response to be able to properly deal with this.
I suggest adding the headers to the error.
The text was updated successfully, but these errors were encountered: