I want to change the exception format of Geoserver 2.8.2 WMS from default XML to inimage or blank. The docu states that this is possible (https://docs.geoserver.org/latest/en/user/services/wms/reference.html#exceptions), but does not tell how or where. Could anybody please tell me?
Thanks in advance!
CodePudding user response:
The format can be changed only while performing a GetMap request (it cannot be configured, I believe the standard mandates the usage of XML exceptions by default).
When issuing a GetMap request, add the key value pair &EXCEPTIONS=application/vnd.ogc.se_inimage
or &EXCEPTIONS=application/vnd.ogc.se_blank
in the URL.
E.g.:
(should return an image saying that the foobar
style does not exist)