Fix 500 error when artifact file is missing
What does this MR do and why?
- Contributes to #386184 (closed)
- Sentry error: https://sentry.gitlab.net/gitlab/gitlabcom/issues/4034705
Problem
When CI::Build does not have an archived artifact, then the server returns a 500 error.
Solution
Validate the artifact file presence and return 404 if it's missing.
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.
Edited by Vasilii Iakliushin