Only throw a 404 in production, and use a 500 for everything else