(err error)
| 124 | } |
| 125 | |
| 126 | func newRequestTimeoutError(err error) error { |
| 127 | return RequestTimeoutError{errctx.NewWrappedError( |
| 128 | err, |
| 129 | 2, |
| 130 | errctx.WithPrefix("source request timed out"), |
| 131 | errctx.WithStatusCode(http.StatusGatewayTimeout), |
| 132 | errctx.WithPublicMessage(msgSourceIsUnreachable), |
| 133 | errctx.WithShouldReport(false), |
| 134 | )} |
| 135 | } |
| 136 | |
| 137 | func newNotModifiedError(headers http.Header) error { |
| 138 | return NotModifiedError{ |
no test coverage detected