Add note about accepting 200 or 204

This commit is contained in:
Jeff Mitchell 2018-10-09 16:54:18 -04:00
parent c8dbab9c3d
commit 30e64b8297
1 changed files with 5 additions and 0 deletions

View File

@ -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.