From 2c7e82680ee148886949d933152e58b17098077b Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Mon, 17 Jan 2022 10:20:47 +0100 Subject: [PATCH] feat: add additional default descriptions for HttpExceptions Signed-off-by: Philip Molares --- src/api/utils/descriptions.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/api/utils/descriptions.ts b/src/api/utils/descriptions.ts index ba1d637fe..dd8d23d4e 100644 --- a/src/api/utils/descriptions.ts +++ b/src/api/utils/descriptions.ts @@ -4,6 +4,8 @@ * SPDX-License-Identifier: AGPL-3.0-only */ +export const badRequestDescription = + "The request is malformed and can't be processed"; export const unauthorizedDescription = 'Authorization information is missing or invalid'; export const forbiddenDescription = @@ -11,3 +13,9 @@ export const forbiddenDescription = export const notFoundDescription = 'The requested resource was not found'; export const successfullyDeletedDescription = 'The requested resource was sucessfully deleted'; +export const unprocessableEntityDescription = + "The request change can't be processed"; +export const conflictDescription = + 'The request conflicts with the current state of the application'; +export const internalServerErrorDescription = + 'The request triggered an internal server error.';