Use StatusConflict instead of StatusServiceUnavailable

Signed-off-by: Anant Prakash <anantprakashjsr@gmail.com>
This commit is contained in:
Anant Prakash 2018-04-15 01:51:47 +05:30
parent 93933b4afb
commit c18bb3fbaa
No known key found for this signature in database
GPG key ID: C5D399F626523045

View file

@ -179,7 +179,7 @@ func validateRecaptcha(
) *util.JSONResponse { ) *util.JSONResponse {
if !cfg.Matrix.RecaptchaEnabled { if !cfg.Matrix.RecaptchaEnabled {
return &util.JSONResponse{ return &util.JSONResponse{
Code: http.StatusServiceUnavailable, Code: http.StatusConflict,
JSON: jsonerror.Unknown("Captcha registration is disabled"), JSON: jsonerror.Unknown("Captcha registration is disabled"),
} }
} }