Documentation / zerotal / index / UnauthorizedError
Class: UnauthorizedError
Defined in: packages/core/src/errors/HttpError.ts:30
401 Unauthorized — authentication is required and has failed or is missing.
Extends
Constructors
Constructor
new UnauthorizedError(
message?):UnauthorizedError
Defined in: packages/core/src/errors/HttpError.ts:31
Parameters
message?
string = "Unauthorized"
Returns
UnauthorizedError
Overrides
Properties
headers?
optionalheaders?:Record<string,string>
Defined in: packages/core/src/errors/HttpError.ts:15
Inherited from
code
readonlycode:string
Defined in: packages/core/src/errors/ZerotalError.ts:18
Inherited from
status
readonlystatus:number=500
Defined in: packages/core/src/errors/ZerotalError.ts:19
Inherited from
context?
readonlyoptionalcontext?:Record<string,unknown>
Defined in: packages/core/src/errors/ZerotalError.ts:20