net/http.Response.StatusCode (field)
18 uses
net/http (current package)
client.go#L498: switch resp.StatusCode {
client.go#L637: return nil, uerr(fmt.Errorf("%d response missing Location header", resp.StatusCode))
filetransport.go#L110: pr.res.StatusCode = code
h2_bundle.go#L7642: if re.err != nil || res.StatusCode > 299 {
h2_bundle.go#L8481: StatusCode: statusCode,
response.go#L37: StatusCode int // e.g. 200
response.go#L181: resp.StatusCode, err = strconv.Atoi(statusCode)
response.go#L182: if err != nil || resp.StatusCode < 0 {
response.go#L250: text, ok = statusText[r.StatusCode]
response.go#L252: text = "status code " + strconv.Itoa(r.StatusCode)
response.go#L257: text = strings.TrimPrefix(text, strconv.Itoa(r.StatusCode)+" ")
response.go#L260: if _, err := fmt.Fprintf(w, "HTTP/%d.%d %03d %s\r\n", r.ProtoMajor, r.ProtoMinor, r.StatusCode, text); err != nil {
response.go#L316: if r1.ContentLength == 0 && !chunked(r1.TransferEncoding) && !contentLengthAlreadySent && bodyAllowedForStatus(r.StatusCode) {
response.go#L358: return isProtocolSwitchResponse(r.StatusCode, r.Header)
transfer.go#L490: t.StatusCode = rr.StatusCode
transport.go#L1713: if resp.StatusCode != 200 {
transport.go#L2125: if resp.Close || rc.req.Close || resp.StatusCode <= 199 || bodyWritable {
transport.go#L2280: resCode := resp.StatusCode