Back to articles

What should I do if I get a 5xx error on my website?

HTTP 5xx errors indicate a problem on the server side. They may be related to your origin server, the CDN, or the Fasterize platform itself. This guide helps you diagnose and resolve these errors based on the code you receive.

Troubleshooting 5xx Errors in Fasterize

Introduction

HTTP 5xx errors indicate a problem on the server side. They may be related to your origin server, the CDN, or the Fasterize platform itself. This guide helps you diagnose and resolve these errors based on the code you receive.

1. First and foremost: gather the right information

For any investigation, start by gathering the following information:

💡 This information is essential for your hosting provider or Fasterize support. How do I retrieve the requestID?

2. Server-side errors

🔧 500: Internal Server Error

A 500 error indicates a problem with your origin web server. Error establishing a database connection is a common HTTP 500 error message generated by your origin web server.

In this case, Fasterize was able to connect to the origin server but received a 500 error in response. The HTTP response header X-Fstrz added by Fasterize then has the value stc, Z, p.

💡 Note: To simplify incident resolution, Fasterize does not use error code 500.

Resolution:

🔧 502 / 504: Bad Gateway / Gateway Timeout (from the origin)

An HTTP 502 or 504 error can occur in two ways:

502/504 from your origin web server

In this case, Fasterize was able to establish a connection to the origin, but the origin returned a response with error code 502 or 504. The returned page does not mention Fasterize or any CDN (e.g., CloudFront). The header X-Fstrz is then equal to stc, Z, p.

Resolution:

🔧 503: Service Unavailable

HTTP error 503 occurs when your origin web server is overloaded. This status code is never returned by Fasterize. As with 500 errors, the header X-Fstrz is equal to stc, Z, p or etc., Z, p.

Resolution:

🔧 542: Unable to connect to the origin

Fasterize returns a 542 error when it is unable to access the origin web servers. There are several possible reasons for this:

Resolution:

🔧 544: Slow response from the origin

An error 544 is generated if Fasterize is unable to connect to the origin server within 20 seconds, or if no HTTP response is received within 175 seconds.

Resolution:

3. Errors on the CDN or Fasterize side

🌐 502 / 504: from the CDN (e.g., CloudFront)

Error 502/504 displayed by the CDN when it is unable to contact Fasterize.

Resolution:

⚙️ 521: Configuration not found

Error 521 means that the Fasterize platform was unable to find a configuration matching the domain name.

Resolution:

🔁 524: Redirect loop

The origin of the configuration points to Fasterize instead of the origin server, causing a loop.

Resolution:

🛠️ 53x / 59x: Fasterize internal error

An internal error has occurred on the Fasterize platform.

Resolution:

🧪 543: Prerender not available

This error may occur when Chrome performs a prerender using Speculation Rules. If the page is not cached on Fasterize, a 543 error is returned to prevent an unnecessary request to the origin.

Resolution:

Conclusion

5xx errors can have various causes. This guide helps you identify the source of the problem and take action quickly. Always remember to provide the necessary information to speed up the diagnosis, whether you’re working with your hosting provider or our support team.