sciencemesh / cs3api4lab

CS3APIs Jupyterlab connector
Apache License 2.0
4 stars 11 forks source link

Api request give wrong error message #205

Closed diocas closed 1 year ago

diocas commented 1 year ago

When there's an API request to retrieve a folder that doesn't exist, I do not get a 404 but a strange message...

GET http://localhost:8888/api/contents/home/Test?type=directory&_=1668684581121

400
{"message": "/home/Test is a directory", "reason": "bad type"}

it should be

404
{"message": "file or directory does not exist: 'Test'", "reason": null}