func net/http.StatusText
34 uses
net/http (current package)
filetransport.go#L111: pr.res.Status = fmt.Sprintf("%d %s", code, StatusText(code))
h2_bundle.go#L8482: Status: status + " " + StatusText(statusCode),
server.go#L1791: func (e statusError) Error() string { return StatusText(e.code) + ": " + e.text }
server.go#L1907: fmt.Fprintf(c.rwc, "HTTP/1.1 %d %s%sUnsupported transfer encoding", code, StatusText(code), errorHeaders)
server.go#L1915: fmt.Fprintf(c.rwc, "HTTP/1.1 %d %s: %s%s%d %s: %s", v.code, StatusText(v.code), v.text, errorHeaders, v.code, StatusText(v.code), v.text)
status.go#L150: func StatusText(code int) string {
net/http/httptest
recorder.go#L180: res.Status = fmt.Sprintf("%03d %s", res.StatusCode, http.StatusText(res.StatusCode))
github.com/aws/aws-sdk-go/aws/corehandlers
handlers.go#L147: Status: http.StatusText(int(code)),
handlers.go#L158: Status: http.StatusText(int(0)),
github.com/aws/aws-sdk-go/aws/ec2metadata
api.go#L44: awserr.New(req.HTTPResponse.Status, http.StatusText(req.HTTPResponse.StatusCode), err),
go.opencensus.io/plugin/ochttp
server.go#L223: t.statusLine = http.StatusText(t.statusCode)
golang.org/x/net/http2
transport.go#L1979: Status: status + " " + http.StatusText(statusCode),
golang.org/x/pkgsite/internal/frontend
404.go#L38: MessageData: struct{ StatusText string }{http.StatusText(http.StatusNotFound)},
404.go#L131: MessageData: struct{ StatusText string }{http.StatusText(fr.status)},
fetch.go#L142: return http.StatusBadRequest, http.StatusText(http.StatusBadRequest)
fetch.go#L151: return serr.status, http.StatusText(serr.status)
fetch.go#L154: return http.StatusInternalServerError, http.StatusText(http.StatusInternalServerError)
fetch.go#L160: return http.StatusInternalServerError, http.StatusText(http.StatusInternalServerError)
fetch.go#L434: fr.err = fmt.Errorf("%q: %v", http.StatusText(fr.status), vm.Error)
playground.go#L22: http.Error(w, http.StatusText(status), status)
server.go#L335: return fmt.Sprintf("%d (%s): %v (epage=%v)", s.status, http.StatusText(s.status), s.err, s.epage)
server.go#L362: log.Infof(ctx, "returning %d (%s) for error %v", serr.status, http.StatusText(serr.status), err)
server.go#L365: serr.responseText = http.StatusText(serr.status)
server.go#L425: statusInfo := fmt.Sprintf("%d %s", status, http.StatusText(status))
golang.org/x/pkgsite/internal/middleware
accept_requests.go#L20: http.Error(w, http.StatusText(http.StatusRequestURITooLong), http.StatusRequestURITooLong)
accept_requests.go#L29: http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed)
quota.go#L97: http.Error(w, http.StatusText(tmr), tmr)
golang.org/x/pkgsite/internal/worker
server.go#L281: http.Error(w, http.StatusText(code), code)
server.go#L292: fmt.Fprintln(w, http.StatusText(code))
server.go#L464: http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
server.go#L739: return fmt.Sprintf("%d (%s): %v", s.status, http.StatusText(s.status), s.err)
server.go#L761: log.Infof(ctx, "returning %d (%s) for error %v", serr.status, http.StatusText(serr.status), err)
google.golang.org/grpc/internal/transport
http_util.go#L284: errMsgs = append(errMsgs, fmt.Sprintf("%s: HTTP status code %d", http.StatusText(*(d.data.httpStatus)), *d.data.httpStatus))
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |