Orchestrator API error responses

Orchestrator API error responses are formatted as JSON objects.

Error responses use these keys:
Key Definition
kind The kind of error encountered.
msg The message associated with the error.
details A hash with more information about the error.
For example, if an environment does not exist for a given request, you might get this error response:
{
  "kind" : "puppetlabs.orchestrator/unknown-environment",
  "msg" : "Unknown environment doesnotexist",
  "details" : {
    "environment" : "doesnotexist"
  }
}