return proper 404 + 500 errors

3 jobs for master
Status Job ID Name Coverage
  Build
canceled #434
build

 
  Test
canceled #436
allowed to fail
code_quality

canceled #435
test