Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class RequestError
extends Error
Re-export
import { RequestError } from "https://deno.land/x/fathym_everything_as_code@v0.0.369/src/src.deps.ts";

Error with extra properties to help with debugging

Constructors

new
RequestError(
message: string,
statusCode: number,
options: RequestErrorOptions,
)

Properties

deprecated
code: number

http status code

deprecated
headers: ResponseHeaders

error response headers

name: "HttpError"
request: RequestOptions

Request options that lead to the error.

optional
response: OctokitResponse<unknown>

Response object if a response was received

status: number

http status code