UNPKG

netstorage

Version:

A TypeScript API and CLI for the Akamai NetStorage REST interface

18 lines (17 loc) 499 B
/** * Represents an HTTP error with a status code and message. * * @property {number} code - The HTTP status code associated with the error. */ export declare class HttpError extends Error { code: number; method: string; url: string; /** * Creates a new HttpError instance. * * @param {string} message - The error message. * @param {number} code - The HTTP status code. */ constructor(message: string, code: number, method?: string, url?: string); }