Skip to content

Commit 135bd4a

Browse files
committed
Fix: Change Http status code to not found when CrowdAction does not exist
1 parent bddaa7c commit 135bd4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/crowdaction/errors/crowdaction.error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class CrowdActionMustBeInTheFutureError extends ApiError {
2727

2828
export class CrowdActionDoesNotExist extends ApiError {
2929
constructor() {
30-
super({ message: `Could not find any CrowdAction that fit the criteria`, statusCode: HttpStatus.BAD_REQUEST });
30+
super({ message: `Could not find any CrowdAction that fit the criteria`, statusCode: HttpStatus.NOT_FOUND });
3131
}
3232
}
3333

0 commit comments

Comments
 (0)