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
In issue #600 we discuss having a Plack::Builder object. Once we figure out the plugin implementation (#599), we should a way in the API to add stuff to that middleware stack.
The text was updated successfully, but these errors were encountered:
For a specific example, it would be great if I could register a component that wraps around all requests that can intercept exceptions / errors and do something in response.
Example:
I have a REST API and parts of it will throw validation errors. I would like to have one place that says:
If the exception generated is of type ...Validation, then set status code to 400 and error = some message.
In issue #600 we discuss having a
Plack::Builder
object. Once we figure out the plugin implementation (#599), we should a way in the API to add stuff to that middleware stack.The text was updated successfully, but these errors were encountered: