MCPcopy Create free account
hub / github.com/netlify/gotrue / httpError

Function httpError

api/errors.go:118–123  ·  view source on GitHub ↗
(code int, fmtString string, args ...interface{})

Source from the content-addressed store, hash-verified

116}
117
118func httpError(code int, fmtString string, args ...interface{}) *HTTPError {
119 return &HTTPError{
120 Code: code,
121 Message: fmt.Sprintf(fmtString, args...),
122 }
123}
124
125// Recoverer is a middleware that recovers from panics, logs the panic (and a
126// backtrace), and returns a HTTP 500 (Internal Server Error) status if

Callers 8

limitHandlerMethod · 0.85
triggerMethod · 0.85
badRequestErrorFunction · 0.85
internalServerErrorFunction · 0.85
notFoundErrorFunction · 0.85
unauthorizedErrorFunction · 0.85
forbiddenErrorFunction · 0.85
unprocessableEntityErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…