mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-11 08:53: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 {
|
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{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue