Skip to content

Commit 20dc8b3

Browse files
authored
Merge pull request #183 from CollActionteam/feature/crowdaction-not-found-response
Fix: Change Status Code to 404 when CrowdAction is not found
2 parents bddaa7c + 135bd4a commit 20dc8b3

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)