Skip to content

Commit

Permalink
feat: Change it to 428
Browse files Browse the repository at this point in the history
  • Loading branch information
Inderpal Singh committed Mar 21, 2024
1 parent 34a0e0f commit 2fa28a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
public class ApplicationNotInCorrectStateExceptionMapper implements ExceptionMapper<ApplicationNotInCorrectStateException> {
@Override
public Response toResponse(ApplicationNotInCorrectStateException exception) {
return Response.status(Response.Status.BAD_REQUEST).entity(exception.getMessage()).build();
return Response.status(Response.Status.PRECONDITION_REQUIRED).entity(exception.getMessage()).build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void submitApplication_when_application_not_in_submittable_state() {
.when()
.post("/api/v1/applications/2/submit")
.then()
.statusCode(400);
.statusCode(428);
}


Expand Down

0 comments on commit 2fa28a0

Please sign in to comment.