diff --git a/docs/client/api.html b/docs/client/api.html index 4300236b42..68d3d4cfd4 100644 --- a/docs/client/api.html +++ b/docs/client/api.html @@ -2826,12 +2826,13 @@ standard `x-www-form-urlencoded` content type, unless the `content` or `data` option is used to specify a body, in which case the parameters will be appended to the URL instead. -The callback receives two arguments, `error` and `result`. The `error` -argument will contain an Error if the request fails in any way, -including a network error, time-out, or an HTTP status code in the 400 -or 500 range. The result object is always -defined. When run in synchronous mode, the `result` is returned from the -function, and the `error` value is a stored as a property in `result`. +The callback receives two arguments, `error` and `result`. The +`error` argument will contain an Error if the request fails in any +way, including a network error, time-out, or an HTTP status code in +the 400 or 500 range. In case of a 4xx/5xx HTTP status code, the +`response` property on `error` matches the contents the result object +would have had otherwise. When run in synchronous mode, either +`result` is returned from the function, or `error` is thrown. Contents of the result object: @@ -2853,11 +2854,6 @@ Contents of the result object: Object
error callback parameter.