2
0
mirror of https://github.com/status-im/consul.git synced 2025-01-12 23:05:28 +00:00

1 Commits

Author SHA1 Message Date
Blake Covarrubias
4bd92921f4
api: Return 404 when deregistering a non-existent check ()
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  to
similarly return a 404 when de-registering non-existent services.

Fixes 
2022-01-06 12:38:37 -08:00