fix: wrong status code
This commit is contained in:
parent
f26de4f639
commit
a0d3c89395
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ export function relationError(name: string) {
|
|||
|
||||
export function notFoundError(name: string) {
|
||||
return new HttpError(
|
||||
HttpStatus.BAD_REQUEST,
|
||||
HttpStatus.NOT_FOUND,
|
||||
`${name} cannot be found.`,
|
||||
`${name.charAt(0).toLowerCase() + name.replaceAll(" ", "").slice(1)}NotFound`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue