Skip to main content

default_error_handler

Function default_error_handler 

Source
pub fn default_error_handler(
    _req: &GatewayRequest,
    err: GatewayError,
) -> GatewayResponse
Expand description

A custom HTTP error handler that returns JSON error responses.

This handler maps gRPC status codes to HTTP status codes and returns a JSON body with the error details.