Status Codes
  • 20 Jun 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Status Codes

  • Dark
    Light
  • PDF

Article summary

How we respond to bots

We return the same status code that you return to us by default. There are some exceptions when we change your status code. You can read about them in the Status Code Mapping section. These are the status codes that you can see on the Crawler visits page, in your Dashboard.

200 (OK)

When everything is working OK, or your page was cached before and the current content is being served.

image 2.png

400 (Bad Request)

When our service receives an invalid URL.

401 (Unauthorized)

A wrong token has been provided.
Your Prerender.io Token from the Security and Access menu.

403 (Forbidden)

This code is shown if the token is not provided.
Your Prerender.io Token from the Security and Access menu.

429 (Too Many Requests)

You will see this code if you are on the basic plan and hit the plan's limit.

308 (Permanent Redirect)

This code is shown when the requested URL has a redirect in it. It means no error, the request is fulfilled. Please be advised that Prerender.io integration has to be present on the URL as well where to connection has been redirected to. Prerender.io does not follow the redirection.

503 (Service Unavailable)

If your Prerender.io subscription is canceled, this code will be shown when trying to use your token.

504 (Gateway Timeout)

We return 504 in the following cases:

  • when your page is blank for some reason e.g: <html><head></head><body></body></html>
  • If an error happens while rendering your page
  • any other error happens on our side

Bots will try again if they get a 504.

image 3.png

Status Code mapping

These are the status codes we change to improve your SEO:

304 (Not Modified) to 200 (OK)

Whenever you return a 304 (Not Modified) to us, we will respond to the bot with a 200 (OK).

Settings

Timeout status code

By default, we respond with a 504 (Gateway Timeout) if the render takes longer than the timeout (20 seconds by default). You can change the status code that should be returned to the bot if a render takes more than the default timeout.

prerender-status-code meta tag

You can set up the status code that should be returned to a bot with a meta tag. In the Best Practices section, you can read more about it.


Was this article helpful?

What's Next