MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / NewObjectNotFound

Function NewObjectNotFound

storage/reader.go:56–58  ·  view source on GitHub ↗

NewObjectNotFound creates a new Reader with a 404 Not Found status.

(message string)

Source from the content-addressed store, hash-verified

54
55// NewObjectNotFound creates a new Reader with a 404 Not Found status.
56func NewObjectNotFound(message string) *ObjectReader {
57 return NewObjectError(http.StatusNotFound, message)
58}
59
60// NewObjectError creates a new Reader with a custom status code
61func NewObjectError(statusCode int, message string) *ObjectReader {

Callers 7

GetObjectMethod · 0.92
handleErrorFunction · 0.92
GetObjectMethod · 0.92
GetObjectMethod · 0.92
GetObjectMethod · 0.92
GetObjectMethod · 0.92

Calls 1

NewObjectErrorFunction · 0.85

Tested by 1