Deal with 404s properly without an internal server error