KarrLab / datanator_rest_api

A OAS3 compliant REST API for the Datanator integrated database
MIT License
0 stars 3 forks source link

"Record request exceeds limit" failures should return a 500 error #120

Closed jonrkarr closed 4 years ago

jonrkarr commented 4 years ago

Example:

The frontend has difficulty handling this because the server doesn't return an error. I think this should be categorized as a 500 error.

lzy7071 commented 4 years ago

This response is to indicate no records found, because there is no kegg_id that equals to K223755050. I will change it to return an empty array.

lzy7071 commented 4 years ago

Done.

jonrkarr commented 4 years ago

Thanks! The frontend now displays a 404 message to users.