@nestjs/common
Version:
Nest - modern, fast, powerful node.js web framework (@common)
26 lines (25 loc) • 1.86 kB
JavaScript
import { HttpStatus } from '../enums/index.js';
import { BadGatewayException, BadRequestException, ConflictException, ForbiddenException, GatewayTimeoutException, GoneException, HttpVersionNotSupportedException, ImATeapotException, InternalServerErrorException, MethodNotAllowedException, MisdirectedException, NotAcceptableException, NotFoundException, NotImplementedException, PayloadTooLargeException, PreconditionFailedException, RequestTimeoutException, ServiceUnavailableException, UnauthorizedException, UnprocessableEntityException, UnsupportedMediaTypeException, } from '../exceptions/index.js';
export const HttpErrorByCode = {
[]: BadGatewayException,
[]: BadRequestException,
[]: ConflictException,
[]: ForbiddenException,
[]: GatewayTimeoutException,
[]: GoneException,
[]: HttpVersionNotSupportedException,
[]: ImATeapotException,
[]: InternalServerErrorException,
[]: MethodNotAllowedException,
[]: MisdirectedException,
[]: NotAcceptableException,
[]: NotFoundException,
[]: NotImplementedException,
[]: PayloadTooLargeException,
[]: PreconditionFailedException,
[]: RequestTimeoutException,
[]: ServiceUnavailableException,
[]: UnauthorizedException,
[]: UnprocessableEntityException,
[]: UnsupportedMediaTypeException,
};