forked from ciao-project/ciao
-
Notifications
You must be signed in to change notification settings - Fork 0
Error Codes Format
Samuel Ortiz edited this page Jul 8, 2016
·
1 revision
If an error occurs while processing our API request, you get a non 2xx API status code. The system also returns additional information about the fault in the body of the response.
Example: Fault: JSON response
{
"error": {
"code": 404,
"name": "StatusNotFound",
"message": "The instance does not exist"
}
}
"error"
: Static key, all data json return the "error" key, as value a json.
"code"
: HTTP Return Error code number. Integer type.
"name"
: Name of Code. String type.
"message"
: A more meaningful message describing the error. String type.
For a full description of names refer to Golang net/http package docs
Development
- Release Process
- QA
- Vendoring FAQ
- [Single VM Development Environment] (https://github.com/01org/ciao/wiki/Single-VM-Machine-Development-Environment)
Architecture
Usage