71429: Unauthorized component

This commit is contained in:
Kristof De Langhe
2020-06-24 14:22:28 +02:00
parent 0cef62ff48
commit 78a5bd5fce
11 changed files with 91 additions and 6 deletions

View File

@@ -20,6 +20,10 @@ export class ServerResponseService {
return this;
}
setUnauthorized(message = 'Unauthorized'): this {
return this.setStatus(401, message)
}
setNotFound(message = 'Not found'): this {
return this.setStatus(404, message)
}