Check HTTP status code when polling Pod Logs API
Summary
Check the HTTP status code returned by the Pod Logs API when deciding whether to retry the API. Currently, we retry if the API returns nil.
Improvements
This will keep the code consistent with the rest of our codebase. It will also make the code easier to understand for someone who is not familiar with our codebase but is familiar with HTTP status codes.
Risks
Involved components
https://gitlab.com/gitlab-org/gitlab/blob/master/ee/app/assets/javascripts/kubernetes_logs.js#L12