Skip to content

Commit 2abc2df

Browse files
authored
Merge pull request #41 from sdmx-twg/issue-29
Document "informational" status codes
2 parents 312302d + cd319e6 commit 2abc2df

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

v2_1/ws/rest/docs/4_8_errors.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Error handling
1+
## Error handling and status information
22

33
RESTful web services should indicate errors using the proper HTTP status code. In addition, whenever appropriate, the error should also be returned using the error message offered starting with version 2.1 of SDMX-ML.
44

@@ -66,3 +66,10 @@ SDMX error | HTTP status code
6666
503 Service unavailable | 503 Service unavailable
6767
510 Response size exceeds service limit | 413 Request entity too large
6868
1000+ | 500 Internal server error
69+
70+
### Other useful HTTP status codes
71+
72+
Apart from the error codes mentioned above, there are a few additional [HTTP status codes](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) that are typically encountered when consuming a SDMX RESTful web service. These are:
73+
74+
- `200`: This is the standard response for successful HTTP requests. With `GET` requests, it is used to indicate that the request was successfully processed and that the data are available in the body of the response.
75+
- `304`: This is used to indicate that there are no changes since the version specified by the request headers `If-Modified-Since` or `If-None-Match`. The response does not include matching data, as the client can still use the previously-downloaded copy.

0 commit comments

Comments
 (0)