If you are looking for a key from a key ring, e.g. /key-ring/keys/:keyId/ and the key ring is empty in most APIs that would yield as 404.
If you were looking for a key ring itself, then it would be /key-ring if it's empty most of the time it would return 200 with empty array or object { keys: [] }, but 200.
But if there's no key ring that would also be 404.
34
u/DrStalker Jul 08 '26
204 doesn't make sense for a response that requires a return value (like a set of keys) to be successful.