mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
feat: add additional default descriptions for HttpExceptions
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
d0477a5e34
commit
2c7e82680e
1 changed files with 8 additions and 0 deletions
|
@ -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.';
|
||||
|
|
Loading…
Reference in a new issue