Opened 4 years ago

Closed 4 years ago

#556 closed defect (fixed)

SECORE HTTP exit codes for exception reports not to be 200

Reported by: pcampalani Owned by: dmisev
Priority: major Milestone: 9.0
Component: undecided Version: development
Keywords: exit code http exception Cc: dmisev, pbaumann
Complexity: Easy


SECORE always returns 200 OK HTTP status.

E.g. running:

$ wget "http://localhost:8090/def/crs?authority=EPSG&version=0&code=4327&foo=qwerty" -O file
--2013-11-22 20:18:49--  http://localhost:8090/def/crs?authority=EPSG&version=0&code=4327&foo=qwerty
Resolving localhost (localhost)...
Connecting to localhost (localhost)||:8090... connected.
HTTP request sent, awaiting response... 200 OK

Whereas it should return 400 Bad request (or 404 Not Found..?), in this case.

Change History (3)

comment:1 Changed 4 years ago by dmisev

  • Status changed from new to accepted

Patch submitted.

comment:2 Changed 4 years ago by abeccati

Looks like this can be closed?

comment:3 Changed 4 years ago by dmisev

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.