mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
Fixed unit test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user