AbstractOptionaloptions: SupabaseServerErrorOptionsReadonlysourceAlways "@supabase/server".
Abstract ReadonlystatusHTTP status code appropriate for this error.
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.
Returns the wire format — also used implicitly by JSON.stringify, so
logging the error yields the full diagnostics rather than {}.
Base class for every error
@supabase/serverproduces.Catch this to handle anything originating from this library, regardless of whether it's an EnvError or an AuthError:
Example: Catching any library error