From 8c0465975ceccd3a65c9722ee380a85296bb835d Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 24 May 2017 16:48:50 +0100 Subject: [PATCH] Forbidden not Unknown --- 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 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{