MCPcopy Index your code
hub / github.com/cavaliergopher/grab / Error

Method Error

v3/error.go:34–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32type StatusCodeError int
33
34func (err StatusCodeError) Error() string {
35 return fmt.Sprintf("server returned %d %s", err, http.StatusText(int(err)))
36}
37
38// IsStatusCodeError returns true if the given error is of type StatusCodeError.
39func IsStatusCodeError(err error) bool {

Callers 8

testCompleteFunction · 0.80
TestResponseOpenFunction · 0.80
TestResponseBytesFunction · 0.80
TestCancelContextFunction · 0.80
TestBeforeCopyHookFunction · 0.80
TestAfterCopyHookFunction · 0.80
httpErrorFunction · 0.80

Calls

no outgoing calls

Tested by 7

testCompleteFunction · 0.64
TestResponseOpenFunction · 0.64
TestResponseBytesFunction · 0.64
TestCancelContextFunction · 0.64
TestBeforeCopyHookFunction · 0.64
TestAfterCopyHookFunction · 0.64