mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00
71429: Unauthorized component
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user