MCPcopy Create free account
hub / github.com/EpochCloud/quick / SendErrorResponse

Method SendErrorResponse

config/api_response.go:58–62  ·  view source on GitHub ↗
(w http.ResponseWriter, errResponse ErrorResult)

Source from the content-addressed store, hash-verified

56}
57
58func (r ErrorResult) SendErrorResponse(w http.ResponseWriter, errResponse ErrorResult) {
59 w.WriteHeader(errResponse.HttpCode)
60 errMessage, _ := json.Marshal(&errResponse.Error)
61 io.WriteString(w,string(errMessage))
62}
63
64type NormalResult struct {
65 Resp string

Callers 8

EngineFunction · 0.80
validateFunction · 0.80
ConfigurationFunction · 0.80
getConfFunction · 0.80
GetServiceFunction · 0.80
getServiceFunction · 0.80
deleteServiceFunction · 0.80
insertServiceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected