mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
fix: map PermissionError to HTTP Forbidden
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
4271ef740c
commit
ada90ed30b
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ const mapOfHedgeDocErrorsToHttpErrors: Map<string, HttpExceptionConstructor> =
|
|||
['ClientError', (object): HttpException => new BadRequestException(object)],
|
||||
[
|
||||
'PermissionError',
|
||||
(object): HttpException => new UnauthorizedException(object),
|
||||
(object): HttpException => new ForbiddenException(object),
|
||||
],
|
||||
[
|
||||
'TokenNotValidError',
|
||||
|
|
Loading…
Reference in a new issue