404 if token isn't found
This commit is contained in:
parent
6f8bb5e90b
commit
97d0fd009d
|
@ -510,7 +510,7 @@ func (a *ACL) UpsertTokens(args *structs.ACLTokenUpsertRequest, reply *structs.A
|
|||
return structs.NewErrRPCCodedf(400, "token lookup failed: %v", err)
|
||||
}
|
||||
if out == nil {
|
||||
return structs.NewErrRPCCodedf(400, "cannot find token %s", token.AccessorID)
|
||||
return structs.NewErrRPCCodedf(404, "cannot find token %s", token.AccessorID)
|
||||
}
|
||||
|
||||
// Cannot toggle the "Global" mode
|
||||
|
|
Loading…
Reference in New Issue