diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index f0d3415c8..5b4e8db3e 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -162,7 +162,7 @@ func SendJoin( if err != nil { return util.JSONResponse{ Code: http.StatusBadRequest, - JSON: jsonerror.NotJSON("The request body could not be decoded into valid JSON. " + err.Error()), + JSON: jsonerror.BadJSON("The request body could not be decoded into valid JSON: " + err.Error()), } }