Fixed unit test

This commit is contained in:
Philipp Czora
2019-02-25 15:09:28 +01:00
parent a4d78e6e60
commit bbde074e19
3 changed files with 10 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ export class NotFoundError extends BackendError {
export function createBackendError(content: BackendErrorContent, statusCode: number) {
switch (statusCode) {
case 403:
case 401:
return new UnauthorizedError(content, statusCode);
case 404:
return new NotFoundError(content, statusCode);