503 Service Unavailable: What It Is and How to Fix It

The 503 service unavailable error is an HTTP response status code that indicates the server is temporarily unable to process the request due to overload or system maintenance. The length of the delay can be included in the Retry-After header information of the server.
Here are some common messages that sent with the 503 error:
  • 503 Service Unavailable
  • 503 Service Temporarily Unavailable
  • HTTP 503 - Service Unavailable
  • HTTP Error 503
  • Error 503
  • Server Error, 503

How to fix it:

  • 1. Restart the server

  • The 503 service unavailable code could be congestion in the chain of servers hosting your application. The first easiest solution is to restart the web server hosting the application. If your site is hosted on multiple servers, make sure that all of them are restarted in the proper manner so that the system is back online properly. If you have configured everything to run automatically on startup, you can visit your website and see if it is working.
  • 2. Check if the page is down for everyone or just you

  • Next, you can use a service like Blexb or Down For Everyone Or Just Me to check if other people are getting the same error or it’s just for you. You can install the Blexb for free or go to their sites and enter in the URL for the current page you're trying to visit. This kind of service will help you to see the problem with the specific analysis.
  • 3. Improper firewall configuration

  • Another way is to check out the firewall. A firewall is a basic security device that blocks some unsafe network traffic. In most cases, all potentially harmful traffic will be blocked or logged. However, automatic firewall services sometimes perform false positives, mistaking some secure and valid content for malicious, and thus shutting down that content stream in an instant, which can lead to 503 service unavailability errors.
  • 4. Sift through your server-side logs

  • You can also check the server-side logs. Server-side logs have two types -- application logs and server logs. The application log describes the whole history of your website, allowing you to see the page requested by visitors and the server it connects to. The server log provides information about the hardware running your server and reveals details about its health and status. Filter these two types of server-side logs to find some information about your server or website.
  • 5. Sort out the website code

  • If the site still displays a 503 service unavailable error after trying all of the above, there may be an error in the site’s code. There is an error in the website code and the web server may not be answering requests from the content delivery network correctly. Sort through your code, or copy your code into the development machine, to find the problems.