/** * Base HTTP error. You can extend specific errors from it or simply use `throw new HttpError()`. * HttpError does not provide stack trace if project environment is set to 'production'. * NOTE: as this is an HTTP error, you want to use when you want your server to respond with it. * It is not suitable for controlling the logic without sending it in a response. * @extends Error */ export declare class HttpError extends Error { /** * HTTP status code. */ code: number; /** * HttpError constructor. * @param code Status code to be provided when the error is thrown * @param message Message to be displayed when the error is thrown * @param prototype Message prototype. This optional parameter is used to build custom errors atop HttpError */ constructor(code?: number, message?: string, prototype?: any); /** * Rewire stack trace to make it more human-readable * @param stackTrace error stack trace */ private rewireStackTrace; }