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
The error response format is controller by error-handling middleware, which is typically strong-error-handler in LoopBack 3.x and recently scaffolded LoopBack 2.x applications.
You can replace strong-error-handler with your own middleware to control the format of JSON responses.
We had considered the ability to configure the format of HTTP responses in strong-error-handler too, but didn't have bandwidth to implement it yet - see loopbackio/strong-error-handler#8. Contributions welcome!
In my hook.js file I have:
My response object looks like this:
Why does it NOT look like this:
Which is the same thing minus the wrapping in an error object.
The text was updated successfully, but these errors were encountered: