---
title: "HTTP 5xx status codes on Cloud Platform"
date: "2024-02-14T06:18:38+00:00"
summary: "Troubleshoot HTTP 5xx errors on Cloud Platform. Learn causes, access logs, and resolve issues for improved site performance."
image:
type: "page"
url: "/acquia-cloud-platform/http-5xx-status-codes-cloud-platform"
id: "88f0e3eb-53c7-49ea-a0af-4efa8cb83741"
---

If your server experiences slow queries, use the provided documentation to identify and resolve these issues. Tools and guides are available to help parse slow query logs and understand how to improve query performance. To request help for severely-impacted production sites, [create a Support ticket](/service-offerings/support "Support") with critical urgency for immediate assistance or to terminate problematic queries on your behalf.

Cloud Platform replaces all HTTP 500, 501, 502, 503 and 504 status code responses served to visitors of your _production environments_ with a generic `503 Service Unavailable` response. Displaying the following common response prevents the production environment from leaking error message information:

    Temporarily Unavailable
    
    The website that you're trying to reach is having technical difficulties
    and is currently unavailable. We are aware of the issue and are working
    hard to fix it. Thank you for your patience.

Important

The above message cannot normally be changed. However, if you use a WAF, you might be able to replace the message with other content. For more information, visit the documentation for the specific WAF. For example, [Cloudflare Error Pages](https://developers.cloudflare.com/rules/custom-errors/ "https://developers.cloudflare.com/rules/custom-errors/").

To assist with troubleshooting during development, _non-production environments_ pass all HTTP 5xx status codes through the load balancers back to the requesting client without any replacement. You can review these error messages in your [log files](/acquia-cloud-platform/monitor-apps/logs), which you can access using the following methods:

*   [Downloading active log files](/acquia-cloud-platform/monitor-apps/logs#cloud-download-logs-ui)
*   [Downloading historical logs](/acquia-cloud-platform/monitor-apps/logs#cloud-download-logs-cli)
*   [Streaming log entries in real time](/acquia-cloud-platform/monitor-apps/logstream)
*   [Log forwarding in Cloud Platform](/acquia-cloud-platform/monitor-apps/logs/forwarding)

For production environments, logs and [log streaming](/acquia-cloud-platform/monitor-apps/logstream) should be used to determine the root cause. Access logs show the real HTTP status code at the backend, and matching logs from other sources (PHP Errors, Drupal Watchdog, and so on) can be found with the `X-Request-Id` value, which matches all logged items for the same request.

Common causes of "Temporarily Unavailable" pages on production environments include:

*   Transitory resource limits such as insufficient CPU or DB resources, etc. due to high traffic (either expected, or from unusual robot crawling or DDoS attacks) and/or application complexity.
*   Code and/or data changes or bugs that trigger PHP exceptions or errors.

Resolution varies depending upon the situation, and may include actions such as rollback changes to a site (for example, restoration of an older configuration or code and/or a database backup), PHP memory limit adjustments, or use of a Web Application Firewall (WAF) to block traffic through [Acquia Edge](https://docs.acquia.com/acquia-cloud-platform/add-ons/edge/overview "https://docs.acquia.com/acquia-cloud-platform/add-ons/edge/overview") or other methods.

To learn more about how your infrastructure allocates resources, visit [Tuning your infrastructure configuration](/acquia-cloud-platform/manage-apps/infrastructure/tuning).