Optional ReadonlycauseOptional ReadonlycodeOptional ReadonlymetadataReadonlystatusConverts the error to a formatted string representation.
Optionalmultiline: boolean
Determine if output value must be multiline or not.
A formatted error string.
StaticcreateCreate a RuntimeError.
Optionaloptions: ErrorOptions
The options to create a RuntimeError.
A new RuntimeError instance.
Thrown when authentication fails (missing/invalid/expired token). Carries
statusCode = 401so any HTTP error handler maps it to401 Unauthorized, while the error itself stays agnostic.