Skip to content

HTTP Status 500 instead of 400 #50

@damb

Description

@damb

Dear colleagues,

there might be an issue while parsing request parameters, since with the request:

$ cat eida-routing.500 
service=station
format=post
OrderedDict([('network', 'GR'), ('station', '*'), ('location', '*'), ('channel', 'BHZ'), ('starttime', '2017-01-01T00:00:00'), ('endtime', '2017-01-02T00:00:00')])
$ wget -O - --post-file eida-routing.500 "http://geofon.gfz-potsdam.de/eidaws/routing/1/query"
--2018-02-09 12:30:29--  http://geofon.gfz-potsdam.de/eidaws/routing/1/query
Resolving geofon.gfz-potsdam.de (geofon.gfz-potsdam.de)... 139.17.3.177
Connecting to geofon.gfz-potsdam.de (geofon.gfz-potsdam.de)|139.17.3.177|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2018-02-09 12:30:29 ERROR 500: Internal Server Error.

I receive HTTP Status Code 500. However, code 400 would be more appropriate, I guess.

Kind regards,
Daniel

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions