This commit is contained in:
Neil Alexander 2021-11-11 15:11:41 +00:00
parent 24904a56a9
commit 9fb7b59648
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 26 additions and 4 deletions

View file

@ -525,7 +525,7 @@ func SendJoin(
util.GetLogger(httpReq.Context()).WithField(logrus.ErrorKey, response.ErrMsg).Error("SendEvents failed")
if response.NotAllowed {
return util.JSONResponse{
Code: http.StatusBadRequest,
Code: http.StatusForbidden,
JSON: jsonerror.Forbidden(response.ErrMsg),
}
}