net/http.Response.StatusCode (field)

19 uses

	net/http (current package)
		client.go#L513: 	switch resp.StatusCode {
		filetransport.go#L130: 	pr.res.StatusCode = code
		h2_bundle.go#L8639: 		if res.StatusCode > 299 {
		h2_bundle.go#L9694: 		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#L499: 		t.StatusCode = rr.StatusCode
		transport.go#L1931: 		if resp.StatusCode != 200 {
		transport.go#L2372: 		if resp.Close || rc.treq.Request.Close || resp.StatusCode <= 199 || bodyWritable {
		transport.go#L2522: 		resCode := resp.StatusCode

	github.com/coder/websocket
		dial.go#L243: 	if resp.StatusCode != http.StatusSwitchingProtocols {
		dial.go#L244: 		return nil, fmt.Errorf("expected handshake response status code %v but got %v", http.StatusSwitchingProtocols, resp.StatusCode)