@athenna/http
Version:
The Athenna Http server. Built on top of fastify.
22 lines (21 loc) • 572 B
TypeScript
/**
* @athenna/http
*
* (c) João Lenon <lenon@athenna.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { Exception } from '@athenna/common';
import type { ExceptionJson } from '@athenna/common/types';
export declare class HttpException extends Exception {
/**
* This exception uses the 500 status code and the "E_HTTP_ERROR" code.
*
* @example
* ```js
* throw new HttpException()
* ```
*/
constructor(options?: ExceptionJson);
}