frontend/.pnpm-store/v3/files/ab/32998ce9e19e52c31a882f0bbd1af3a4f69c9ad5c82f520939aa4b859436033e33383067aa32d85405a23c629688b195d66ec046882f53f3c04d83a7ac8c40

34 lines
917 B
Plaintext

import { RequestOptions, ResponseHeaders, OctokitResponse } from "@octokit/types";
import { RequestErrorOptions } from "./types";
/**
* Error with extra properties to help with debugging
*/
export declare class RequestError extends Error {
name: "HttpError";
/**
* http status code
*/
status: number;
/**
* http status code
*
* @deprecated `error.code` is deprecated in favor of `error.status`
*/
code: number;
/**
* Request options that lead to the error.
*/
request: RequestOptions;
/**
* error response headers
*
* @deprecated `error.headers` is deprecated in favor of `error.response.headers`
*/
headers: ResponseHeaders;
/**
* Response object if a response was received
*/
response?: OctokitResponse<unknown>;
constructor(message: string, statusCode: number, options: RequestErrorOptions);
}