Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class RequestError
extends Error
Re-export
import { RequestError } from "https://deno.land/x/fathym_everything_as_code@v0.0.396/src/octokit.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