Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
change to 405 Method Not Allowed
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <olamy@apache.org>
  • Loading branch information
olamy committed Jun 22, 2023
1 parent cc74998 commit de51f44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ public RegistrationKey registerUser( UserRegistrationRequest userRegistrationReq

if (Boolean.getBoolean(UserConfiguration.USER_REGISTRATION_DISABLE_KEY))
{
throw new RedbackServiceException( new ErrorMessage("Registration Disabled"));
throw new RedbackServiceException( new ErrorMessage("Registration Disabled"), Response.Status.METHOD_NOT_ALLOWED.getStatusCode());
}

User user = userRegistrationRequest.getUser();
Expand Down

0 comments on commit de51f44

Please sign in to comment.