Database Reference
In-Depth Information
Table 5.16 HTTP Error Response Components
Field
Type
Description
HTTP status code that maps
most closely to the response.
Rather than using this to try to
determine the issue, you should
use the errors.reason value
instead.
code
number
User-facing message describing
the first error.
message
string
List of HTTP errors
encountered. Will nearly always
have exactly one error.
errors
object
array
Nearly always global . Not very
interesting.
errors.domain
string
User-facing message describing
the error.
errors.message
string
Code categorizing the error. If
you are handling errors in code,
you should use this field rather
than the message (which may
change at any time) or the HTTP
response code (which maps
imperfectly onto the set of
possible errors) to determine
what went wrong.
errors.reason
string
Describes where in the request
the error occurred. May provide
additional information about the
error.
errors.location
string
(optional)
Provides additional context for
the errors.location field.
errors.locationType string
(optional)
Following is an example error you'll get if you use an invalid
Authorization header:
 
Search WWH ::




Custom Search