const net/http.StatusBadRequest
11 uses
net/http (current package)
fs.go#L821: serveError(w, "invalid URL path", StatusBadRequest)
fs.go#L855: serveError(w, "invalid URL path", StatusBadRequest)
h2_bundle.go#L7285: Error(w, err.Error(), StatusBadRequest)
server.go#L1858: func badRequestError(e string) error { return statusError{StatusBadRequest, e} }
server.go#L2819: w.WriteHeader(StatusBadRequest)
status.go#L36: StatusBadRequest = 400 // RFC 9110, 15.5.1
status.go#L127: case StatusBadRequest:
github.com/coder/websocket
accept.go#L207: return http.StatusBadRequest, fmt.Errorf("unsupported WebSocket protocol version (only 13 is supported): %q", r.Header.Get("Sec-WebSocket-Version"))
accept.go#L212: return http.StatusBadRequest, errors.New("WebSocket protocol violation: missing Sec-WebSocket-Key")
accept.go#L216: return http.StatusBadRequest, errors.New("WebSocket protocol violation: multiple Sec-WebSocket-Key headers")
accept.go#L222: 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.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |