20% OFF Your first order with SAVE20
Background image of the page

Help Article

How To Fix "Status Code 504" Error in Minecraft?

This article shows you step-by-step on how to fix the Status Code 504 error in Minecraft.

Last updated on  Feb 24, 2026

A status code 504 (Gateway Timeout) in Minecraft usually means the server or the client is waiting too long for a response from another server (often Mojang’s authentication servers, a proxy, or a realm service).


How to Fix Status Code 504 in Minecraft?

  1. Check the Server’s and Network Status
    1. Try restarting your Minecraft server to see if that helps
    2. Check Mojang’s server status to see if they’re having problems: https://downdetector.com/status/minecraft/
    3. Restart your internet connection or try using a VPN, Mobile Data, or a different internet connection
  2. Flush your DNS cache
    1. Windows: Open Command Prompt and run ipconfig /flushdns
    2. MacOS: Open Command Prompt and run sudo killall -HUP mDNSResponder
  3. Try Again Later
    1. Some 504 errors are temporary due to high server load or maintenance. Waiting for a few minutes and trying again can resolve the issue.

Step

Description

Restart Server/Internet

Resolves temporary network or server glitches

Check Mojang Server Status

Ensures the problem isn’t on Mojang’s end

Check proxy/DNS settings

Fixes misconfigurations that may block or delay connections

Wait and retry

Sometimes errors are temporary and will resolve on their own

If none of these steps resolve the 504 error, the issue may be on Mojang’s end or with the host that you’re using.

🧑‍💻
If you still require assistance, please get in touch with our support team by opening a ticket or by joining our community Discord server.