Status returns the HTTP status code.
()
| 39 | |
| 40 | // Status returns the HTTP status code. |
| 41 | func (e StatusError) Status() int { |
| 42 | return e.status |
| 43 | } |
| 44 | |
| 45 | // StatusErrorMatch checks if err was caused by StatusError. Can optionally also check whether the StatusError's |
| 46 | // status code matches one of the supplied status codes in matchStatus. |