422db915 days ago21 lines · 741 B| 1 | import { HttpStatus } from '@nestjs/common'; |
| 2 | import { DomainError } |
| 3 | |
| 4 | export class InvalidReceivePackRequestError |
| 5 | status: number |
| 6 | |
| 7 | constructor(detail: |
| 8 | super( |
| 9 | `Malformed receive-pack request: ${detail}${body |
| 10 | ); |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | /** A push git would refuse, caught before the log commits it: once committed, every node replaying the repository would stop at it. */ |
| 15 | export class PushRejectedError |
| 16 | status: number |
| 17 | |
| 18 | constructor(reason: |
| 19 | super(`Push rejected: ${reason |
| 20 | } |
| 21 | } |