Return 404 when a commit or a branch cannot be found

3 jobs for bugs/#12220 in 19 minutes and 53 seconds (queued for 3 seconds)