Skip to content

Commit

Permalink
404 if token isn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmood Ali committed Nov 19, 2019
1 parent fd66b9c commit 5a1f6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/acl_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a1f6c7

Please sign in to comment.