Add correct error status code to controller olat.php