Added error pages to handle HTTP errors: 400, 403, 404, and 500.