golang.org/x/pkgsite/internal/frontend.serverError.status (field)
35 uses
golang.org/x/pkgsite/internal/frontend (current package)
404.go#L32: status: http.StatusNotFound,
404.go#L66: return &serverError{status: http.StatusNotFound}
404.go#L126: status: fr.status,
404.go#L164: return &serverError{status: http.StatusNotFound}
404.go#L171: status: http.StatusNotFound,
details.go#L30: return &serverError{status: http.StatusMethodNotAllowed}
details.go#L64: status: http.StatusBadRequest,
details.go#L80: status: http.StatusBadRequest,
details.go#L94: status: http.StatusFailedDependency,
fetch.go#L100: return &serverError{status: http.StatusNotFound}
fetch.go#L106: return &serverError{status: http.StatusBadRequest}
fetch.go#L112: return &serverError{status: http.StatusBadRequest}
fetch.go#L116: return &serverError{status: status, responseText: responseText}
fetch.go#L151: return serr.status, http.StatusText(serr.status)
fetch.go#L498: status: http.StatusInternalServerError,
fetch.go#L526: status: http.StatusBadRequest,
fetch.go#L533: status: http.StatusBadRequest,
search.go#L228: return &serverError{status: http.StatusMethodNotAllowed}
search.go#L239: return &serverError{status: http.StatusBadRequest}
search.go#L243: status: http.StatusBadRequest,
search.go#L257: status: http.StatusBadRequest,
search.go#L266: status: http.StatusBadRequest,
server.go#L328: status int // HTTP status code
server.go#L335: return fmt.Sprintf("%d (%s): %v (epage=%v)", s.status, http.StatusText(s.status), s.err, s.epage)
server.go#L356: serr = &serverError{status: http.StatusInternalServerError, err: err}
server.go#L358: if serr.status == http.StatusInternalServerError {
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#L368: http.Error(w, serr.responseText, serr.status)
server.go#L371: s.serveErrorPage(w, r, serr.status, serr.epage)
styleguide.go#L36: return &serverError{status: http.StatusNotFound}
urlinfo.go#L203: return &serverError{status: http.StatusNotFound}
 |
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. |