# Error code 504

<figure><img src="/files/Rk5F9hSXe7PUJyCa88wg" alt=""><figcaption></figcaption></figure>

A gateway timeout error typically occurs when the Web Application Firewall (WAF) takes longer than expected to connect to the backend server. This can happen, for instance, if a user is downloading a large file, which may result in a longer connection time to the site.

Follow these steps to change the protocol:

1. Log in to the Prophaze Dashboard.
2. Navigate to the Settings tab.
3. Click the edit icon next to the domain name for which you want to make changes.
4. Increase the below timeouts value.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.prophaze.com/troubleshooting-queries/error-code-504.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
