Home

How to fix the 520 Status Code?

Alton Alexander
By Alton AlexanderUpdated on June 4th, 2022

The 520 status code is a Web server error code that indicates that the server has encountered an error while processing a client's request. This status code can happen for a variety of reasons, but is most commonly caused by a server misconfiguration or an incorrect response from a upstream server.

Other common searches for this error include:

  • 520 error code
  • 420 error code
  • 520 status code

1. Check the server's firewall and ensure that the necessary ports are open

  1. Go to the server's control panel and open the Firewall.
  2. Check the ports that are open and make sure that the necessary ports are open.
  3. If the port is not open, then open it in the firewall.
  4. If the port is open, then the firewall is working properly.

2. Ensure that the server is configured to accept traffic on the relevant port

The steps to Ensure that the server is configured to accept traffic on the relevant port in order to fix 520 status code are as follows:

  1. Verify that the server is properly configured and rebooted.
  2. Check if the server is configured to listen on the relevant port.
  3. If the server is not configured to listen on the relevant port, then configure the server to listen on the relevant port.
  4. Verify that the server is accepting traffic on the relevant port.

3. Check that the server is not overloaded and that all necessary services are running

There are a few steps that can be taken to check that the server is not overloaded and that all necessary services are running in order to fix 520 status code:

  1. To check the load on the server, use the "netstat -an" command. You will want to look for any errors or warnings that may be present.
  2. Make sure that all necessary services are running. You can use the " service " command to check the status of specific services on the server.
  3. Check the status of the "tcp_window_size" parameter. If it is set to a value that is too small, the server may be overloaded and unable to handle requests. You can use the " netstat -an -i " command to view the value of this parameter.
  4. If the "tcp_window_size" parameter is set to a value that is too large, you can try to reduce the value using the "tcp_config" command.

If you didn't find success with an option above, then try:

  1. If the problem persists, contact the server's administrator.