(headers http.Header)
| 135 | } |
| 136 | |
| 137 | func newNotModifiedError(headers http.Header) error { |
| 138 | return NotModifiedError{ |
| 139 | errctx.NewTextError( |
| 140 | "not modified", |
| 141 | 1, |
| 142 | errctx.WithStatusCode(http.StatusNotModified), |
| 143 | errctx.WithPublicMessage("Not modified"), |
| 144 | errctx.WithShouldReport(false), |
| 145 | ), |
| 146 | headers, |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | func (e NotModifiedError) Headers() http.Header { |
| 151 | return e.headers |
no test coverage detected