From 025f30f1e0424ff2c2f0873a2d32d4175cd59dbd Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 10 Oct 2017 10:27:31 +0100 Subject: [PATCH] Use M_UNKNOWN_TOKEN --- src/github.com/matrix-org/dendrite/clientapi/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3959addde..a9f17aff9 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/auth/auth.go +++ b/src/github.com/matrix-org/dendrite/clientapi/auth/auth.go @@ -66,7 +66,7 @@ func VerifyAccessToken(req *http.Request, deviceDB DeviceDatabase) (device *auth if err == sql.ErrNoRows { resErr = &util.JSONResponse{ Code: 401, - JSON: jsonerror.Forbidden("Invalid access token"), + JSON: jsonerror.UnknownToken("Unknown token"), } } else { resErr = &util.JSONResponse{