You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Minor Changes
#1706df8dba Thanks @paveg! - typePrefix and defaultType now apply to errors thrown via problemDetails() / registry create() and to mapError results when no explicit type was set. Previously these handler options only affected HTTPException and unhandled errors, silently leaving about:blank on the library's primary API. An explicitly set type (including an explicit "about:blank") is never overridden.
Patch Changes
#1690d5d8e4 Thanks @paveg! - The JSON body's status field is now clamped to the same 200-599 range as the HTTP response status. Previously problemDetails({ status: 9999 }) produced an HTTP 500 response whose body still said "status": 9999, contradicting RFC 9457's expectation that the body status mirrors the response status.