net/http.Response.StatusCode (field)
19 uses
net/http (current package)
client.go#L512: switch resp.StatusCode {
filetransport.go#L110: pr.res.StatusCode = code
h2_bundle.go#L8332: if res.StatusCode > 299 {
h2_bundle.go#L9483: StatusCode: statusCode,
response.go#L37: StatusCode int // e.g. 200
response.go#L179: resp.StatusCode, err = strconv.Atoi(statusCode)
response.go#L180: if err != nil || resp.StatusCode < 0 {
response.go#L249: text = StatusText(r.StatusCode)
response.go#L251: text = "status code " + strconv.Itoa(r.StatusCode)
response.go#L256: text = strings.TrimPrefix(text, strconv.Itoa(r.StatusCode)+" ")
response.go#L259: if _, err := fmt.Fprintf(w, "HTTP/%d.%d %03d %s\r\n", r.ProtoMajor, r.ProtoMinor, r.StatusCode, text); err != nil {
response.go#L315: if r1.ContentLength == 0 && !chunked(r1.TransferEncoding) && !contentLengthAlreadySent && bodyAllowedForStatus(r.StatusCode) {
response.go#L357: return isProtocolSwitchResponse(r.StatusCode, r.Header)
transfer.go#L494: t.StatusCode = rr.StatusCode
transport.go#L1746: if resp.StatusCode != 200 {
transport.go#L2160: if resp.Close || rc.req.Close || resp.StatusCode <= 199 || bodyWritable {
transport.go#L2315: resCode := resp.StatusCode
nhooyr.io/websocket
dial.go#L226: if resp.StatusCode != http.StatusSwitchingProtocols {
dial.go#L227: return nil, fmt.Errorf("expected handshake response status code %v but got %v", http.StatusSwitchingProtocols, resp.StatusCode)
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |