Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AuthError

class AuthError extends Error {
constructor(
message: string,
status?: number,
code?: string,
);
protected __isAuthError: boolean;
code: ErrorCode | string | undefined;
status: number | undefined;
}

§Extends

§
Error
[src]

§Constructors

§
new AuthError(message: string, status?: number, code?: string)
[src]

§Properties

§
__isAuthError: boolean
[src]
§
code: ErrorCode | string | undefined
[src]

Error code associated with the error. Most errors coming from HTTP responses will have a code, though some errors that occur before a response is received will not have one present. In that case {@link #status} will also be undefined.

§
status: number | undefined
[src]

HTTP status code that caused the error.