| 1 | import { HttpStatus } from '@nestjs/common'; |
| 2 | |
| 3 | import { DomainError } |
| 4 | |
| 5 | /** Anonymous actor, non-public repository. Git over HTTP renders this as a Basic challenge. */ |
| 6 | export class AuthenticationRequiredError |
| 7 | readonly status = |
| 8 | |
| 9 | constructor() { |
| 10 | super('Authentication required'); |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | /** The actor is known and still may not do this. */ |
| 15 | export class RepositoryForbiddenError |
| 16 | readonly status = |
| 17 | |
| 18 | constructor() { |
| 19 | super('Insufficient permissions for this repository'); |
| 20 | } |
| 21 | } |