The default error handler for the Fetch adapter.
It logs the error, derives a status code from the (typed) error, negotiates JSON vs plain text from the Accept header, and fills the raw-response builder — staying fully Web-standard, no Node-only content-negotiation libraries.
Accept
The auto-wired blueprint.
Handle an adapter-level error.
The error to handle.
The adapter error context.
The raw-response builder.
The default error handler for the Fetch adapter.
It logs the error, derives a status code from the (typed) error, negotiates JSON vs plain text from the
Acceptheader, and fills the raw-response builder — staying fully Web-standard, no Node-only content-negotiation libraries.