Skip to content

HTTP Status Code 523 – Origin Is Unreachable

HTTP Status Code 523 – Origin Is Unreachable

The HTTP status code 523 Origin Is Unreachable indicates that a server, usually a CDN (Content Delivery Network) like Cloudflare, was unable to reach the origin server. This typically means the server that hosts the original content is down or misconfigured, preventing it from responding to requests made by the CDN.

Example 1: Configuration Error

Consider a scenario where a website is using a CDN to improve content delivery. If the origin server has incorrect DNS settings or firewall rules blocking the CDN, requests will fail with a 523 status code.


GET /index.html HTTP/1.1
Host: example.com

HTTP/1.1 523 Origin Is Unreachable
Content-Type: text/html

<html>
<head><title>523 Origin Is Unreachable</title></head>
<body>
<h1>Origin Is Unreachable</h1>
<p>The origin server appears to be down or misconfigured.</p>
</body>
</html>

Example 2: Server Downtime

In this case, the origin server might be experiencing downtime due to maintenance or unexpected outages. The CDN cannot establish a connection to the origin, resulting in a 523 error.


GET /contact-us HTTP/1.1
Host: example.org

HTTP/1.1 523 Origin Is Unreachable
Content-Type: text/html

<html>
<head><title>523 Origin Is Unreachable</title></head>
<body>
<h1>Origin Is Unreachable</h1>
<p>Unable to connect to the server. Please try again later.</p>
</body>
</html>

“`

Example Scenario 3

# Client sends a request example.
GET /example HTTP/1.1
Host: www.example.com

# Server Response
HTTP/1.1 523 523 Origin Is Unreachable
Date: Wed, 09 Oct 2024 23:13:30 GMT
Server: ExampleServer/1.0
Content-Type: application/json

{
    "error": "Description of the error for 523"
}

Example Scenario 4

# Client sends another example request.
POST /another-example HTTP/1.1
Host: www.example.com

# Server Response
HTTP/1.1 523 523 Origin Is Unreachable
Date: Wed, 09 Oct 2024 23:13:30 GMT
Server: ExampleServer/1.0
Content-Type: application/json

{
    "error": "Detailed message for 523"
}

Summary

The 523 status code signifies that the origin server is unreachable, preventing a CDN from accessing the requested content. This problem can be caused by server misconfiguration, network issues, or server downtime. To resolve the issue, ensure that the origin server is online, properly configured, and accessible to the CDN.

I am the founder of SEO Leaders and have been involved in the internet and web development in one way or another for over 20 years. Since founding SEO Leaders some 6 years ago I have been heavily involved in web develepment, Digital PR and technical SEO for a wide variety of projects. I hope to enlighten you on a wide range of topics related to my chosen profession!

Back To Top