Added deployment 404/500 templates to speed up HTTP response in case of failures.