Skip to content

Commit 9ba6ae0

Browse files
authored
Document that unsuccessful HTTP status code result in an exception (#795)
1 parent 7160b82 commit 9ba6ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ All other options except `options.request.*` will be passed depending on the `me
404404
</tr>
405405
</table>
406406

407-
If an error occurs, the promise is rejected with an `error` object containing 3 keys to help with debugging:
407+
If an error occurs, which includes an unsuccessful status code, the promise is rejected with an `error` object containing 3 keys to help with debugging:
408408

409409
- `error.status` The http response status code
410410
- `error.request` The request options such as `method`, `url` and `data`

0 commit comments

Comments
 (0)