HTTPStatus returns the status code of the API response that caused err, or 0.
func HTTPStatus(err error) intHTTPStatus returns the status code of the API response that caused err, or 0 when err did not come from an API response.
| Name | Type | Description |
|---|---|---|
err* | error |