IsNotFound returns true if the status code is 404
()
| 165 | |
| 166 | // IsNotFound returns true if the status code is 404 |
| 167 | func (r *APIResponse) IsNotFound() bool { |
| 168 | return r.StatusCode == 404 |
| 169 | } |
| 170 | |
| 171 | // FormatJSON pretty-prints the response body as JSON |
| 172 | func (r *APIResponse) FormatJSON() string { |
no outgoing calls