Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of non-existing items should return 404 #78

Closed
trondn opened this issue Sep 26, 2012 · 0 comments
Closed

List of non-existing items should return 404 #78

trondn opened this issue Sep 26, 2012 · 0 comments
Labels

Comments

@trondn
Copy link
Contributor

trondn commented Sep 26, 2012

If I do "curl http://localhost:8484/.cbfs/list/monitor/files.html" I get:
{"dirs":{},"files":{"files.html":{}},"path":"/monitor/files.html"}

This is just the way I expect it, but if I type in the name of an non-existing file I would expect to get some sort of an error, but instead I"m getting:

curl http://localhost:8484/.cbfs/list/monitor/files.htmlssadfsdafjkdsafhasdkjfhjsadklfhlsdajkf
{"dirs":{},"files":{},"path":"/monitor/files.htmlssadfsdafjkdsafhasdkjfhjsadklfhlsdajkf"}

A 404 would be more intuitive..

@dustin dustin closed this as completed in 0d869d5 Sep 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants