Skip to content

@nhtio/lucid-resourceful/integration/middlewares/odata_error

An Adonis middleware which intercepts errors thrown during the request lifecycle and formats the responses in a consistent manner meant to be easily consumed by clients.

Classes

ClassDescription
defaultAdonisJS middleware that intercepts errors thrown during HTTP requests and formats the responses in a consistent, client-friendly manner. Supports multiple error types including Vine validation errors, Joi validation errors, framework exceptions, and generic errors.