Skip to main content

Crate hyperlane_plugin_problem_details

Crate hyperlane_plugin_problem_details 

Source
Expand description

hyperlane-plugin-problem-details

RFC 9457 (application/problem+json) error response builder and automatic 4xx/5xx normalizer for Hyperlane with a zero-overhead 2xx/3xx fast path.

Structs§

ProblemDetails
Structured RFC 9457 Problem Details payload.
ProblemDetailsConfig
Configuration for ProblemDetailsPlugin.
ProblemDetailsHook
Opt-in response middleware normalizing 4xx/5xx error responses into RFC 9457 Problem Details.
ProblemDetailsPlugin
Compiled RFC 9457 response normalizer backing ProblemDetailsHook.

Constants§

ABOUT_BLANK_TYPE
Default RFC 9457 type URI ("about:blank").
PROBLEM_JSON_MEDIA_TYPE
RFC 9457 media type for Problem Details JSON responses.
PROBLEM_JSON_PREFIX
Media type prefix checked to avoid double-wrapping existing Problem Details responses.

Functions§

default_title_for_status
Maps an HTTP status code to its standard RFC 9110 reason phrase title.