2025-04-24 17:03:28 +08:00

9 lines
236 B
TypeScript

/**
* Error subclass to use when an HTTP application error has occurred.
*/
export default class HTTPError extends Error {
code: string;
statusCode: number;
constructor(statusCode: number, message?: string | undefined);
}