37 return "OperationNotSupported";
39 return "MissingParameterValue";
41 return "InvalidParameterValue";
43 return "VersionNegotiationFailed";
45 return "InvalidUpdateSequence";
47 return "NoApplicableCode";
49 return "ConnectionFailed";
51 return "ErrorConfigFile";
53 return "RequestSqlFailed";
55 return "RequestHTTPNotValid";
57 return "ForbiddenCharacter";
59 return "MissingMetadata";
61 return "NoSrsDefined";
83 if ((o->
init && FCGI_Accept() >= 0) || !o->
init) {
85 fprintf(o->
output,
"Content-Type: application/xml\n\n");
86 fprintf(o->
output,
"<?xml version='1.0' encoding='UTF-8'?>\n");
87 fprintf(o->
output,
"<ows:ExceptionReport\n");
88 fprintf(o->
output,
" xmlns='http://www.opengis.net/ows'\n");
89 fprintf(o->
output,
" xmlns:ows='http://www.opengis.net/ows'\n");
90 fprintf(o->
output,
" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'\n");
91 fprintf(o->
output,
" xsi:schemaLocation='http://www.opengis.net/ows");
92 fprintf(o->
output,
" http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'\n");
93 fprintf(o->
output,
" version='1.1.0' language='en'>\n");
94 fprintf(o->
output,
" <ows:Exception exceptionCode='%s' locator='%s'>\n",
96 fprintf(o->
output,
" <ows:ExceptionText>%s</ows:ExceptionText>\n", message);
97 fprintf(o->
output,
" </ows:Exception>\n");
98 fprintf(o->
output,
"</ows:ExceptionReport>\n");
void ows_log(ows *o, int log_level, const char *log)
static char * ows_error_code_string(enum ows_error_code code)
void ows_error(ows *o, enum ows_error_code code, char *message, char *locator)
@ OWS_ERROR_OPERATION_NOT_SUPPORTED
@ OWS_ERROR_CONNECTION_FAILED
@ OWS_ERROR_NO_SRS_DEFINED
@ OWS_ERROR_NO_APPLICABLE_CODE
@ OWS_ERROR_VERSION_NEGOTIATION_FAILED
@ OWS_ERROR_MISSING_PARAMETER_VALUE
@ OWS_ERROR_INVALID_PARAMETER_VALUE
@ OWS_ERROR_INVALID_UPDATE_SEQUENCE
@ OWS_ERROR_FORBIDDEN_CHARACTER
@ OWS_ERROR_REQUEST_SQL_FAILED
@ OWS_ERROR_MISSING_METADATA