Exceptions and Error Handling

In the event that a WFS encounters an error while processing a request or receives an unrecognized request, it generates an XML document indicating that an error has occurred.

WFS 1.0.0

For WFS v.1.0.0, the format of the XML error response is specified by, and must validate against, the exception response schema defined in section A.2 of the OGC WFS v1.0.0 specification (http://www.opengeospatial.org/standards/wfs).

WFS 1.1

For WFS v.1.1, the format of the XML error response is specified by, and must validate against, the exception response schema defined in clause 8 of the OGC Web Service (OWS) Common Implementation Specification (http://www.opengeospatial.org/standards/common).

<ExceptionReport xmlns="http://www.opengis.net/ows" version="1.1.0">
		<Exception exceptionCode="InvalidParameterValue" locator="SERVICE">
			<ExceptionText>WFSEx_InvalidParameterValue: Invalid value for parameter: SERVICE<ExceptionText>
		</Exception>
</ExceptionReport>

The following exception codes are reported:

The locator parameter contains the name of the parameter which is invalid or missing in the request. A VersionNegotiationFailed error does not return a locator as it is thrown only for the ACCEPTVERSIONS parameter.”