MCPcopy Create free account
hub / github.com/algolia/cli / ErrorResponse

Function ErrorResponse

pkg/httpmock/stub.go:47–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func ErrorResponse() Responder {
48 return func(req *http.Request) (*http.Response, error) {
49 return httpResponse(404, req, bytes.NewBufferString("")), nil
50 }
51}
52
53func ErrorResponseWithBody(body interface{}) Responder {
54 return func(req *http.Request) (*http.Response, error) {

Callers 3

Test_CheckACLsFunction · 0.92
Test_runGetCmdFunction · 0.92
TestWaitForTask_APIErrorFunction · 0.92

Calls 1

httpResponseFunction · 0.85

Tested by 3

Test_CheckACLsFunction · 0.74
Test_runGetCmdFunction · 0.74
TestWaitForTask_APIErrorFunction · 0.74