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

ResponseError

An error object return in a response in case a request has failed.

class ResponseError<D = void> extends Error {
constructor(
code: number,
message: string,
data?: D,
);
readonly code: number;
readonly data: D | undefined;
 
toJson(): ResponseErrorLiteral<D>;
}

§Type Parameters

§
D = void
[src]

§Extends

§
Error
[src]

§Constructors

§
new ResponseError(code: number, message: string, data?: D)
[src]

§Properties

§
code: number
[src]
§
data: D | undefined
[src]

§Methods