Forbidden not Unknown

This commit is contained in:
Kegan Dougal 2017-05-24 16:48:50 +01:00
parent 4e0c1924a6
commit 8c0465975c

View file

@ -44,7 +44,7 @@ func VerifyAccessToken(req *http.Request, deviceDB *devices.Database) (device *a
if err == sql.ErrNoRows { if err == sql.ErrNoRows {
resErr = &util.JSONResponse{ resErr = &util.JSONResponse{
Code: 403, Code: 403,
JSON: jsonerror.Unknown("Invalid access token"), JSON: jsonerror.Forbidden("Invalid access token"),
} }
} else { } else {
resErr = &util.JSONResponse{ resErr = &util.JSONResponse{