diff --git a/api4/hosted_customer.go b/api4/hosted_customer.go index ae11514ae4..9c76b33efc 100644 --- a/api4/hosted_customer.go +++ b/api4/hosted_customer.go @@ -217,7 +217,11 @@ func handleSignupAvailable(c *Context, w http.ResponseWriter, r *http.Request) { return } if err := c.App.Cloud().SelfHostedSignupAvailable(); err != nil { - c.Err = model.NewAppError(where, "api.server.hosted_signup_unavailable.error", nil, "", http.StatusNotImplemented) + if err.Error() == "upstream_off" { + c.Err = model.NewAppError(where, "api.server.hosted_signup_unavailable.error", nil, "", http.StatusServiceUnavailable) + } else { + c.Err = model.NewAppError(where, "api.server.hosted_signup_unavailable.error", nil, "", http.StatusNotImplemented) + } return }