Appendix A. A Guide to Common Status Codes
This section outlines some of the most common status codes in use in HTTP APIs, their meaning, and some notes about when they can be used.
| Code | Meaning | Notes |
|---|---|---|
|
Continue |
For a large request, a client can send just the headers and |
|
OK |
This is good news; everything worked as expected. |
|
Created |
A new resource was created. This is often accompanied by a |
|
Accepted |
This is useful if something is taken to be actioned later, such as being placed on a queue for asynchronous processing. |
|
No Content |
The request was successful, but there is nothing to return. Perhaps this is the result of a |
|
Moved Permanently |
The content is at a new location, and this is a permanent change. Links to the old URL must be updated, and this change will often be cached for long periods. |
|
Found |
This is much like a |
|
Not Modified |
This is sent in response to a request that included information such as an |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access