Expose HTTP code during GitHub importer errors
What does this MR do and why?
Describe in detail what your merge request does and why.
This change adjusts the message returned to the user when a GitHub import operation fails to include the response HTTP code.
This is useful when the HTTP body is empty, such as during the use of reverse proxies in accessing a GitHub Enterprise instance over the internet.
The presence of a HTTP code can help establish if a connection was at least made successfully and the HTTP code can further be traced in their own proxy or GitHub Enterprise logging for further troubleshooting.
The logs already carry this information, but on SaaS this is currently not visible due to https://gitlab.com/gitlab-com/gl-infra/reliability/-/issues/15470
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
N/A
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
N/A
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.