Use when an API needs consistent error responses: catch unhandled errors centrally and return consistent JSON error envelopes.
Use when an API needs consistent error responses: catch unhandled errors centrally and return consistent JSON error envelopes.