mirror of https://github.com/hashicorp/consul
api: Return 404 when deregistering a non-existent check (#11950)
Update the `/agent/check/deregister/` API endpoint to return a 404 HTTP response code when an attempt is made to de-register a check ID that does not exist on the agent. This brings the behavior of /agent/check/deregister/ in line with the behavior of /agent/service/deregister/ which was changed in #10632 to similarly return a 404 when de-registering non-existent services. Fixes #5821pull/11963/head
parent
1eac39ae9c
commit
4bd92921f4
@ -0,0 +1,3 @@
|
|||||||
|
```release-note:improvement
|
||||||
|
api: Return 404 when de-registering a non-existent check
|
||||||
|
```
|
Loading…
Reference in new issue