Added ui error handling for 403 errors

This commit is contained in:
Philipp Czora
2019-03-04 11:49:12 +01:00
parent f68398e599
commit 6c06352de2
6 changed files with 28 additions and 7 deletions

View File

@@ -39,6 +39,14 @@ export class UnauthorizedError extends Error {
}
}
export class ForbiddenError extends Error {
statusCode: number;
constructor(message: string, statusCode: number) {
super(message);
this.statusCode = statusCode;
}
}
export class NotFoundError extends BackendError {
constructor(content: BackendErrorContent, statusCode: number) {
super(content, "NotFoundError", statusCode);