diff --git a/src/routes/UploadRoute.ts b/src/routes/UploadRoute.ts index ebcf5fb..f8e236d 100644 --- a/src/routes/UploadRoute.ts +++ b/src/routes/UploadRoute.ts @@ -84,6 +84,9 @@ export class UploadRoute extends Route { success: false, }; } + if (uploadConfirmation.error) { + res.status(httpStatus.BAD_REQUEST); + } res.json(uploadConfirmation); }); }