AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Add Kind to Error Responses #300

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of related component: Management API

Request summary:
Could you add Kind: to the error response so that it is consistent with other 
responses.

Example:

{
  "Kind": "analytics#Error",
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "required",
        "message": "Login Required",
        "locationType": "header",
        "location": "Authorization"
      }
    ],
    "code": 401,
    "message": "Login Required"
  }
}

Use Cases:

Use for testing when response returned is an error or not and just to be 
constant with everything else I have seen so far.

Original issue reported on code.google.com by laurl...@gmail.com on 6 Jun 2013 at 8:49