Response standardization

Except for 500 errors which may differ, each response of the API will be wrapped into an object structure, given thereafter.

  • message : An information message, human readable.
  • data : The data you asked for, or some detailed error information, if available and needed.

{
  "message": "string",  
  "data": { ... }
}