When an entity is not found, in REST APIV3, querying a catalogue id by path returns
- 404 error for space, and
- 500 error for source
For example: GET http://10.7.0.1:9047/api/v3/catalog/by-path/space/nonExistent
returns
HTTP/1.1 404 Not Found
while GET http://10.7.0.1:9047/api/v3/catalog/by-path/SomeSource/nonExistent
returns
HTTP/1.1 500 Internal Server Error
"moreInfo": "java.io.FileNotFoundException: No such file or directory: s3a://...
This makes it difficult to handle the error cases on the client side.
Request: It would be great if the REST API abstracts out correctly and returns 404 (Not Found) in all cases (irrespective of source or space) when an entity is not found. This might mean the Dremio handling the java.io.FileNotFoundException
and returning 404 to the client instead of throwing and resulting 500.