fix: improve error semantics, clarify answer key type
This commit is contained in:
parent
6eaf282651
commit
648c5d2979
6 changed files with 62 additions and 34 deletions
|
|
@ -25,3 +25,9 @@ export class ConflictError extends AppError {
|
|||
super(message, 409);
|
||||
}
|
||||
}
|
||||
|
||||
export class UnprocessableEntityError extends AppError {
|
||||
constructor(message: string) {
|
||||
super(message, 422);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue