UNPKG

@othree.io/excuses

Version:

Excuses

9 lines 443 B
/** * Parses HTTP error code and optionally a message into a corresponding custom Error instance. * * @param {number} httpErrorCode - The HTTP status code. * @param {string} [message] - Optional error message. * @returns {Error} - Returns an instance of a custom Error based on the HTTP status code. */ export declare const parseHttpError: (httpErrorCode: number, message?: string) => any; //# sourceMappingURL=http-error-parser.d.ts.map