func net/http.Error
11 uses
net/http (current package)
csrf.go#L213: Error(w, err.Error(), StatusForbidden)
fs.go#L157: Error(w, "Error reading directory", StatusInternalServerError)
fs.go#L211: Error(w, text, code)
h2_bundle.go#L7285: Error(w, err.Error(), StatusBadRequest)
server.go#L2301: func Error(w ResponseWriter, error string, code int) {
server.go#L2322: func NotFound(w ResponseWriter, r *Request) { Error(w, "404 page not found", StatusNotFound) }
server.go#L2707: Error(w, StatusText(StatusMethodNotAllowed), StatusMethodNotAllowed)
github.com/coder/websocket
accept.go#L111: http.Error(w, err.Error(), errCode)
accept.go#L123: http.Error(w, err.Error(), http.StatusForbidden)
accept.go#L131: http.Error(w, http.StatusText(http.StatusNotImplemented), http.StatusNotImplemented)
accept.go#L162: http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
 |
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. |