Custom errors
ACE Working example
Download the sample workspace here.
Provided workspace showcases an endpoint which does not return default ACE error response but instead the value and error code specified by the developer in the flow.
How to use the example?
Try the provided GET /getSpecifiedUrl
method from the Try it out view.
Passing an invalid or non-existing URL in the specifiedUrl
query param will trigger an ACE error which is overriden by the flow. The returned value is a 404 error code and custom message instead of standard 500 error code and message returned by ACE.
Passing a valid URL will return the normal response as text.