4.3. Error Messages from a POST Operation
If the POST is accepted, the JSON response sent back
by cOS Core will be the following:
{
"error":false
}
If there is an error, cOS Core will return a message
indicating the problem. For example, the following JSON message might be returned to the client:
{
"error":true,
"error_code":400,
"error_message":"Bad Request, malformed"
}
The following is a complete list of POST error messages:
- malformed - The body has an error in its syntax.
- no server identifier parameter - The serverID parameter is missing.
- no server address parameter - The serverIP parameter is missing.
- missing parameter - Either the load or maintenance parameter is missing.
- load out of range - The load value is not between 0 and 100.
- unknown server - No SLB rule matches the serverIP/serverID combination.