...
provides data in JSON-stat 2.0 format;
supports only REpresentation State Transfer (REST) protocol;
delivers responses in English, French or German.
Excerpt | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The structure of the REST requestThe structure to build the REST request is a URL: {host_url}/{service}/{version}/{response_type}/{datasetCode}?{format}&{lang}&{filters}
|
The parameters defined in the REST request
...
Error messages returned in case of invalid queries
Fault Code | HTTP Status | Description |
---|---|---|
Client Errors | ||
100 No results found | 400 Bad request | The result from the query is empty. |
100 No results found | 404 Not Found | The requested resource is not available. |
140 Syntax error | 400 Bad request | The query is invalid. |
150 Semantic error | 400 Bad request | The request is syntactically correct but fails a semantic validation, business rules. |
Server errors | ||
500 Internal Server error | 500 Internal server error | The webservice should return this error code when none of the other error codes better describes the reason for the failure of the service to provide a meaningful response. Also used in case of request not respecting the xsd definition. |
Asynchronous response in case of big extractions
...