Issue 17229
web services not returning 404 but 500 when wrong parameters are supplied
17229
Reporter: fmendez
Type: Bug
Summary: web services not returning 404 but 500 when wrong parameters are supplied
Priority: Critical
Status: Open
Created: 2015-02-13 00:25:49.198
Updated: 2015-02-13 00:26:30.648
Description: https://github.com/gbif/c-deploy/commit/437a6cbf01695d1f1101c6e2e1115062e9831a35 fixes a bug reported by http://dev.gbif.org/issues/browse/POR-2644; however, if the supplied parameter is not valid, for example:
http://api.gbif-dev.org/v1/occurrence/counts/countries?country=US throws 500 error instead of 40, in this case the right parameter is publishingCountry:
http://api.gbif-dev.org/v1/occurrence/counts/countries?publishingCountry=US]]>