mapcentia / geocloud2

The GC2 framework helps you build a spatial data infrastructure quickly and easily. Powered using open source components for a scalable solution focused on freedom rather than fees.
https://www.osgeo.org/projects/gc2-vidi/
GNU Affero General Public License v3.0
148 stars 67 forks source link

WFS service should return correct status #78

Closed giovanniborella closed 4 years ago

giovanniborella commented 4 years ago

When querying the WFS-implementation GC2 should return the correct error-code.

Even if the service throws an exception, the http-statuscode is still 200 as per screenshot: billede

should return 500 for server error

mapcentia commented 4 years ago

@giovanniborella Not returning 200 will break things in e.g. MapInfo, which will not show the Expection message when getting other than 200. So I believe the right thing is to return an expections with code 200.