diff --git a/src/github.com/matrix-org/dendrite/clientapi/auth/auth.go b/src/github.com/matrix-org/dendrite/clientapi/auth/auth.go index 13c8e2f60..80eed2b34 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/auth/auth.go +++ b/src/github.com/matrix-org/dendrite/clientapi/auth/auth.go @@ -44,7 +44,7 @@ func VerifyAccessToken(req *http.Request, deviceDB *devices.Database) (device *a if err == sql.ErrNoRows { resErr = &util.JSONResponse{ Code: 403, - JSON: jsonerror.Unknown("Invalid access token"), + JSON: jsonerror.Forbidden("Invalid access token"), } } else { resErr = &util.JSONResponse{