MCPcopy Index your code
hub / github.com/perkeep/perkeep / ForbiddenError

Function ForbiddenError

internal/httputil/httputil.go:52–56  ·  view source on GitHub ↗
(rw http.ResponseWriter, errorMessage string, args ...interface{})

Source from the content-addressed store, hash-verified

50}
51
52func ForbiddenError(rw http.ResponseWriter, errorMessage string, args ...interface{}) {
53 rw.WriteHeader(http.StatusForbidden)
54 log.Printf("Forbidden: %s", fmt.Sprintf(errorMessage, args...))
55 fmt.Fprintf(rw, "<h1>Forbidden</h1>")
56}
57
58func RequestEntityTooLargeError(rw http.ResponseWriter) {
59 rw.WriteHeader(http.StatusRequestEntityTooLarge)

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.80
WriteHeaderMethod · 0.45

Tested by

no test coverage detected