@speedup/error
Version:
SpeedUP standard error library
34 lines (33 loc) • 732 B
TypeScript
/**
* HTTP error
*/
import { ErrorBase, ErrorParameters } from './error_base';
export declare type HttpErrorParameters = ErrorParameters & {
/**
* Status code
*/
statusCode: number;
/**
* Status message
*/
statusMessage: string | undefined;
/**
* Is this a handled error
*/
isHandled: boolean;
};
export declare class HttpError extends ErrorBase {
/**
* HTTP status regarding the error
*/
readonly statusCode: number;
/**
* HTTP status message regarding the error
*/
readonly statusMessage: string | undefined;
/**
* Is this a handled error
*/
readonly isHandled: boolean;
constructor(config?: HttpErrorParameters);
}