janelia-flyem / dvid

Distributed, Versioned, Image-oriented Dataservice
http://dvid.io
Other
197 stars 33 forks source link

Confusing status code while using HEAD on keyvalue data #353

Closed tingzhao closed 3 years ago

tingzhao commented 3 years ago

DVID returns 204 for a HEAD request to a non-existing key in keyvalue data. This can be confusing because 204 usually means that the resource is fine but the server doesn't bother to return any content. 404 would be a better response for a missing key.