docker / hub-feedback

Feedback and bug reports for the Docker Hub
https://hub.docker.com
232 stars 40 forks source link

hub.docker.com/v2/repositories endpoint should return an error code if repository does not exist #2357

Open paololazzari opened 10 months ago

paololazzari commented 10 months ago

I would expect the endpoint to return an error code if the repository does not exist, and not 200:

$ curl -i https://hub.docker.com/v2/repositories/thisrepositorydoesnotactuallyexist/
HTTP/1.1 200 OK
....
{"count":0,"next":null,"previous":null,"results":[]}