From c18bb3fbaa9cddf8efd36bad66be7b65aaf63ed0 Mon Sep 17 00:00:00 2001 From: Anant Prakash Date: Sun, 15 Apr 2018 01:51:47 +0530 Subject: [PATCH] Use StatusConflict instead of StatusServiceUnavailable Signed-off-by: Anant Prakash --- .../matrix-org/dendrite/clientapi/routing/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go index f691595c6..458e174dc 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go @@ -179,7 +179,7 @@ func validateRecaptcha( ) *util.JSONResponse { if !cfg.Matrix.RecaptchaEnabled { return &util.JSONResponse{ - Code: http.StatusServiceUnavailable, + Code: http.StatusConflict, JSON: jsonerror.Unknown("Captcha registration is disabled"), } }