Ensure errors are logged to Sentry from repository archive API endpoint when 404ing
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Work on this issue](https://contributors.gitlab.com/manage-issue?action=work&projectId=278964&issueIid=212840)
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=212840)
</details>
<!--IssueSummary end-->
Currently there's a catch-all 404 error which doesn't log anything, and this can make debugging issues on this endpoint particularly challenging. This may also extend to other endpoints.
issue