mirror of
https://github.com/adidas/api-guidelines.git
synced 2025-10-25 15:19:19 +00:00
Update use-appropriate-status-codes.md
This commit is contained in:
@@ -10,7 +10,7 @@ At a minimum everyone **MUST** be familiar with the semantics of ["Common" HTTP
|
|||||||
|
|
||||||
## Use Codes 4xx or 5xx to Communicate Errors
|
## Use Codes 4xx or 5xx to Communicate Errors
|
||||||
|
|
||||||
Remember the 4xx range concern to errors in the API Consumer/Client side while 5xx range concerns to the upstream/backend service, the API implementation.
|
The 4xx range concerns errors in the API Consumer/Client side, while 5xx range concerns errors in the upstream/backend service or the API implementation.
|
||||||
|
|
||||||
A request:
|
A request:
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ GET /orders/1234 HTTP/1.1
|
|||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
resulting in the **200 OK** response, when the requested resource \(as identified by request URI\) couldn't be found:
|
resulting in the **200 OK** response when the requested resource \(as identified by request URI\) couldn't be found:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
@@ -35,7 +35,7 @@ Content-Type: application/json
|
|||||||
|
|
||||||
is **not acceptable**.
|
is **not acceptable**.
|
||||||
|
|
||||||
Instead the
|
Instead
|
||||||
|
|
||||||
```text
|
```text
|
||||||
HTTP/1.1 404 Not Found
|
HTTP/1.1 404 Not Found
|
||||||
|
|||||||
Reference in New Issue
Block a user