Skip to main content
Question Protected by gnat
added 319 characters in body
Source Link

I'm working on a website that has different languages, being English the master language. Most of the site is fully translated but English content has a bigger team so it usually goes a bit ahead of other languages.

Long story short. The requirement for dealing with this situation is to serve the English content in the meanwhile. However, I am not sure what is the proper status code for this case.

The page wouldn't appear completely in English, there are some parts of the page that appear in the chosen language so It can be seen as a placeholder until the "translated content" is there

What HTTP status code should I use?

Note: I have gone through https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages and 203, 204, 206, 302 and 404 but none of them really fit

Update: 200 OK, doesn't feel completely right since the final page doesn't exist just yet and the page is tagged as noindex so crawlers can't index it. This has been defined as a mechanism for avoiding delivering a 404.

I'm working on a website that has different languages, being English the master language. Most of the site is fully translated but English content has a bigger team so it usually goes a bit ahead of other languages.

Long story short. The requirement for dealing with this situation is to serve the English content in the meanwhile. However, I am not sure what is the proper status code for this case.

The page wouldn't appear completely in English, there are some parts of the page that appear in the chosen language so It can be seen as a placeholder until the "translated content" is there

What HTTP status code should I use?

Note: I have gone through https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages and 203, 204, 206, 302 and 404 but none of them really fit

I'm working on a website that has different languages, being English the master language. Most of the site is fully translated but English content has a bigger team so it usually goes a bit ahead of other languages.

Long story short. The requirement for dealing with this situation is to serve the English content in the meanwhile. However, I am not sure what is the proper status code for this case.

The page wouldn't appear completely in English, there are some parts of the page that appear in the chosen language so It can be seen as a placeholder until the "translated content" is there

What HTTP status code should I use?

Note: I have gone through https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages and 203, 204, 206, 302 and 404 but none of them really fit

Update: 200 OK, doesn't feel completely right since the final page doesn't exist just yet and the page is tagged as noindex so crawlers can't index it. This has been defined as a mechanism for avoiding delivering a 404.

Source Link

What is the correct status code when serving different content than requested?

I'm working on a website that has different languages, being English the master language. Most of the site is fully translated but English content has a bigger team so it usually goes a bit ahead of other languages.

Long story short. The requirement for dealing with this situation is to serve the English content in the meanwhile. However, I am not sure what is the proper status code for this case.

The page wouldn't appear completely in English, there are some parts of the page that appear in the chosen language so It can be seen as a placeholder until the "translated content" is there

What HTTP status code should I use?

Note: I have gone through https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages and 203, 204, 206, 302 and 404 but none of them really fit