mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 23:13:11 -06:00
Forbidden not Unknown
This commit is contained in:
parent
4e0c1924a6
commit
8c0465975c
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue