middlewares library

Functions

defaultErrors() Middleware
encodeJsonBody() Middleware
throwOnStatusCodes({int lessThan: 199, int moreThan: 400}) Middleware

Exceptions / Errors

BadRequestException<T extends BinaryResponse>
HTTP 400
ForbiddenException<T extends BinaryResponse>
HTTP 403
InternalServerException<T extends BinaryResponse>
HTTP 500
MethodNotAllowed<T extends BinaryResponse>
NotFoundException<T extends BinaryResponse>
HTTP 404
PaymentRequired<T extends BinaryResponse>
HTTP 402
UnauthorizedException<T extends BinaryResponse>
HTTP 401