Skip to content

Commit

Permalink
Add note about accepting 200 or 204
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Oct 9, 2018
1 parent 99fa361 commit 1289583
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/source/api/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ The following HTTP status codes are used throughout the API. Vault tries to
adhere to these whenever possible, but in some cases may not -- feel free to
file a bug in that case to point our attention to it!

~> *Note*: Applications should be prepared to accept both `200` and `204` as
success. `204` is simply an indication that there is no response body to parse,
but API endpoints that indicate that they return a `204` may return a `200` if
warnings are generated during the operation.

- `200` - Success with data.
- `204` - Success, no data returned.
- `400` - Invalid request, missing or invalid data.
Expand Down

0 comments on commit 1289583

Please sign in to comment.