MCPcopy Index your code
hub / github.com/coder/coder / writeInvalidClientID

Method writeInvalidClientID

coderd/httpmw/oauth2.go:272–277  ·  view source on GitHub ↗
(ctx context.Context, rw http.ResponseWriter, err error)

Source from the content-addressed store, hash-verified

270}
271
272func (*codersdkErrorWriter) writeInvalidClientID(ctx context.Context, rw http.ResponseWriter, err error) {
273 httpapi.Write(ctx, rw, http.StatusUnauthorized, codersdk.Response{
274 Message: "Invalid OAuth2 client ID.",
275 Detail: err.Error(),
276 })
277}
278
279func (*codersdkErrorWriter) writeClientNotFound(ctx context.Context, rw http.ResponseWriter) {
280 // Management API endpoints return 404 for missing OAuth2 apps (proper REST semantics).

Callers

nothing calls this directly

Calls 2

WriteFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected