Improve passthrough error handling
What does this MR do?
Wraps errors returned from Git, File, and URL passthrough types. Modifies the URL passthrough handler to check the HTTP status code returned from the URL request, to ensure that we're not inadvertently downloading an error page and using it as the passthrough.
What are the relevant issue numbers?
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Lucas Charles