Error Notifications
While requesting data, errors might occur and whenever it is possible, SlashDB tries to provide you with useful information. For instance, if a requested resource doesn't exist, SlashDB will display:
https://demo.slashdb.com/db/Chinook/Invoice/InvoiceId/1000.html
Errors are also provided for data in forms of JSON and XML, so
https://demo.slashdb.com/db/Chinook/Invoice/InvoiceId/1000.json
will produce:
{
"http_code": 404,
"description": "The resource could not be found."
}
and
https://demo.slashdb.com/db/Chinook/Invoice/InvoiceId/1000.xml
<SlashDB>
<http_code>404</http_code>
<description>The resource could not be found.</description>
</SlashDB>
respectively.
SlashDB also gives users an option to get the error info directly form the Response Headers, placing them under the Warning header i.e. for the previous XML request:
HTTP/1.1 404 Not Found
Content-Length: 155
Content-Type: text/xml; charset=utf-8
Date: Mon, 05 Dec 2016 14:24:35 GMT
Server: waitress
Warning: The resource could not be found.