diff --git a/lib/decorators/api-response.decorator.ts b/lib/decorators/api-response.decorator.ts index e89c72915..092c0b761 100644 --- a/lib/decorators/api-response.decorator.ts +++ b/lib/decorators/api-response.decorator.ts @@ -211,6 +211,12 @@ export const ApiPayloadTooLargeResponse = (options: ApiResponseOptions = {}) => status: HttpStatus.PAYLOAD_TOO_LARGE }); +export const ApiPaymentRequiredResponse = (options: ApiResponseOptions = {}) => + ApiResponse({ + ...options, + status: HttpStatus.PAYMENT_REQUIRED + }); + export const ApiRequestTimeoutResponse = (options: ApiResponseOptions = {}) => ApiResponse({ ...options, diff --git a/lib/extra/swagger-shim.ts b/lib/extra/swagger-shim.ts index 943454d7d..514f9e317 100644 --- a/lib/extra/swagger-shim.ts +++ b/lib/extra/swagger-shim.ts @@ -122,6 +122,9 @@ export function ApiPreconditionFailedResponse() { export function ApiPayloadTooLargeResponse() { return () => {}; } +export function ApiPaymentRequiredResponse() { + return () => {}; +} export function ApiRequestTimeoutResponse() { return () => {}; }