(code int)
| 76 | } |
| 77 | |
| 78 | func (r *Response) SetStatusCode(code int) error { |
| 79 | return r.WriteHeader(code) |
| 80 | } |
| 81 | |
| 82 | // WriteHeader sends an HTTP response header with status code. If WriteHeader is |
| 83 | // not called explicitly, the first call to Write will trigger an implicit |