const net/http.StatusBadRequest
11 uses
net/http (current package)
fs.go#L737: Error(w, "invalid URL path", StatusBadRequest)
h2_bundle.go#L7078: Error(w, err.Error(), StatusBadRequest)
server.go#L1823: func badRequestError(e string) error { return statusError{StatusBadRequest, e} }
server.go#L2510: w.WriteHeader(StatusBadRequest)
status.go#L36: StatusBadRequest = 400 // RFC 9110, 15.5.1
status.go#L127: case StatusBadRequest:
go.uber.org/zap
http_handler.go#L95: w.WriteHeader(http.StatusBadRequest)
nhooyr.io/websocket
accept.go#L185: return http.StatusBadRequest, fmt.Errorf("unsupported WebSocket protocol version (only 13 is supported): %q", r.Header.Get("Sec-WebSocket-Version"))
accept.go#L190: return http.StatusBadRequest, errors.New("WebSocket protocol violation: missing Sec-WebSocket-Key")
accept.go#L194: return http.StatusBadRequest, errors.New("WebSocket protocol violation: multiple Sec-WebSocket-Key headers")
accept.go#L200: return http.StatusBadRequest, fmt.Errorf("WebSocket protocol violation: invalid Sec-WebSocket-Key %q, must be a 16 byte base64 encoded string", websocketSecKey)
|
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. |