Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(infra): declare the 400 answers of the storage import route
Yudhi Armyndharisc2cf70f2382a
diff --git a/src/modules/infra/infra-storage.controller.ts b/src/modules/infra/infra-storage.controller.tsindex dc91165d8..2031b72bc 100644--- a/src/modules/infra/infra-storage.controller.ts+++ b/src/modules/infra/infra-storage.controller.ts@@ -234,6 +234,12 @@ export class InfraStorageController implements OnApplicationBootstrap {// string while the handler takes an object.@ApiBody({ type: ImportStorageDto, description: 'Path to tar.gz file to import' })@ApiResponse({ status: 200, description: 'Import result', type: StorageImportResponseDto })+ @ApiResponse({+ status: 400,+ description:+ '`filePath` is outside the data directory or does not exist, or the archive could not be read or ' ++ 'broke a resource cap. Entries written before an abort are kept.',+ })@ApiResponse({ status: 503, description: S3_UNAVAILABLE_DESCRIPTION })async importStorage(@Body() body: ImportStorageDto,