• Version 6.1.4
  • Published
  • 6.34 kB
  • 1 dependency
  • MIT license


npm i @octokit/request-error
yarn add @octokit/request-error
pnpm add @octokit/request-error


Error class for Octokit request errors



class RequestError

class RequestError extends Error {}
  • Error with extra properties to help with debugging


constructor(message: string, statusCode: number, options: RequestErrorOptions);

    property name

    name: string;

      property request

      request: RequestOptions;
      • Request options that lead to the error.

      property response

      response?: OctokitResponse<unknown>;
      • Response object if a response was received

      property status

      status: number;
      • http status code

      Package Files (1)

      Dependencies (1)

      Dev Dependencies (9)

      Peer Dependencies (0)

      No peer dependencies.


      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@octokit/request-error.

      • Markdown
      • HTML
        <a href="https://www.jsdocs.io/package/@octokit/request-error"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>