Closed damb closed 6 years ago
Will be fixed as soon as we focus on logging/exception handling.
The discussion regarding error/exception handling will continue at #21.
Duplicate of #21.
Webservices should abort and return HTTP status code 400 for improper formated query e.g.
$ wget -O - "http://mediator-devel.ethz.ch/fdsnws/station/1/query?foo=--&minlat=48&maxlat=49&net=GR&service=station&format=text"
Currently unknown request parameters are ignored and the request is processed as
$ wget -O - "http://mediator-devel.ethz.ch/fdsnws/station/1/query?minlat=48&maxlat=49&net=GR&service=station&format=text"
Check webargs to implement a proper solution.
Implemented with 77cfb2a. In addition, also stationlite
provides a nodata query parameter. eidaws-wfcatalog
however still uses exclusively HTTP status code 204. @Jollyfant : Did you ever think about adding the nodata query parameter to eidaws-wfcatalog
?
Hi @damb, have considered it but probably won't implement it. IMO 204 is always the appropriate status code for no content.
(also it is not part of the wfcatalog specification v. 0.22)
Hi @Jollyfant,
ok thanks, that's fine for me. I read the specs. I just was wondering why it's not part of it.
federator returns HTTP status code 422 on validation errors: