Skip to main content

Module error_handler

Module error_handler 

Source
Expand description

The error-handler node — turns accumulated gateway errors into a JSON error response. Typically wired to other nodes’ error ports.

Structs§

ErrorHandlerPlugin
Overwrites Context.response with a configured status code and a body rendered from a template. The template may reference the most recent entry in Context.errors via {{error.code}}, {{error.message}}, and {{error.node_id}} placeholders; the content type is forced to application/json.