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§
- Problem
Details - Structured RFC 9457 Problem Details payload.
- Problem
Details Config - Configuration for
ProblemDetailsPlugin. - Problem
Details Hook - Opt-in response middleware normalizing
4xx/5xxerror responses into RFC 9457 Problem Details. - Problem
Details Plugin - Compiled RFC 9457 response normalizer backing
ProblemDetailsHook.
Constants§
- ABOUT_
BLANK_ TYPE - Default RFC 9457
typeURI ("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.