For returns the exit code for err: OK for nil, a code set by WithCode, the.
func For(err error) intFor returns the exit code for err: OK for nil, a code set by WithCode, the code for the API response status behind err, NotFound for a lookup that matched nothing, Unavailable for a request that failed in transit or timed out, and Input otherwise, including a canceled request and an invalid URL.
| Name | Type | Description |
|---|---|---|
err* | error |