MCPcopy Create free account
hub / github.com/OCEChain/OCEChain / WriteErrorResponse

Function WriteErrorResponse

client/utils/rest.go:30–33  ·  view source on GitHub ↗

---------------------------------------- Basic HTTP utilities WriteErrorResponse prepares and writes a HTTP error given a status code and an error message.

(w http.ResponseWriter, status int, err string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

ReadRESTReqFunction · 0.85
ValidateBasicMethod · 0.85
PostProcessResponseFunction · 0.85

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected