fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
43 lines (42 loc) • 1.13 kB
TypeScript
import type { AxiosRequestConfig } from 'axios';
import type { EpicgamesAPIErrorData } from '../../resources/httpResponses';
/**
* Represents an HTTP error from the Epicgames API
*/
declare class EpicgamesAPIError extends Error {
/**
* The HTTP method
*/
method: string;
/**
* The URL of the requested API endpoint
*/
url: string;
/**
* The Epicgames error code (Starts with "errors.com.epicgames")
*/
code: string;
/**
* The Epicgames numeric error code (defaults to null)
*/
numericCode: number | null;
/**
* The HTTP status code
*/
httpStatus: number;
/**
* The request data sent by the client
*/
requestData?: any;
/**
* The variables contained in {@link EpicgamesAPIError#message}
*/
messageVars: string[];
/**
* @param error The raw Epicgames API error data
* @param request The client's request
* @param status The response's HTTP status
*/
constructor(error: EpicgamesAPIErrorData, request: AxiosRequestConfig, status: number);
}
export default EpicgamesAPIError;