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

Struct codersdkErrorWriter

coderd/httpmw/oauth2.go:264–264  ·  view source on GitHub ↗

codersdkErrorWriter writes standard codersdk errors for general API endpoints

Source from the content-addressed store, hash-verified

262
263// codersdkErrorWriter writes standard codersdk errors for general API endpoints
264type codersdkErrorWriter struct{}
265
266func (*codersdkErrorWriter) writeMissingClientID(ctx context.Context, rw http.ResponseWriter) {
267 httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected