diff --git a/ejabberd_auth_http/src/ejabberd_auth_http.erl b/ejabberd_auth_http/src/ejabberd_auth_http.erl index a665f9e..6c9bd63 100644 --- a/ejabberd_auth_http/src/ejabberd_auth_http.erl +++ b/ejabberd_auth_http/src/ejabberd_auth_http.erl @@ -237,9 +237,11 @@ make_req(Method, Path, LUser, LServer, Password) -> <<"401">> -> {error, not_authorized}; <<"403">> -> {error, not_allowed}; <<"400">> -> {error, RespBody}; + <<"503">> -> {error, RespBody}; <<"204">> -> {ok, <<"">>}; <<"201">> -> {ok, created}; - <<"200">> -> {ok, RespBody} + <<"200">> -> {ok, RespBody}; + _ -> {error, RespBody} end. %%%----------------------------------------------------------------------