10.1.7. Error reporting

If request failed, error code will be in HTTP header and error description text in JSON of response body.

Example response:

HTTP/1.1 403 Forbidden
Server: nginx/1.4.6 (Ubuntu)
Date: Sun, 21 Sep 2014 00:05:31 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 44
Connection: keep-alive

{"message": "Attribute 'keyname' forbidden"}