Human-readable description. Prefixed with [@supabase/server].
Machine-readable code.
Optionaloptions: SupabaseServerErrorOptionsOptional hint, details, docs, and cause.
ReadonlysourceAlways "@supabase/server".
ReadonlycodeMachine-readable error code.
Optional ReadonlyhintActionable next step, when one applies.
ReadonlydocsDocumentation URL for this error's code.
Optional ReadonlydetailsStructured, non-sensitive diagnostics — accepted auth modes, which credential headers were present, configured key names, JWT header fields. Never key values or token payloads.
ReadonlystatusAlways 500 — environment errors are server-side issues.
Returns the wire format — also used implicitly by JSON.stringify, so
logging the error yields the full diagnostics rather than {}.
Thrown when a required environment variable is missing or malformed.
Always has
status: 500— environment errors are server-side configuration issues.Example: Catching an EnvError