Welcome! Log In Create A New Profile

Advanced

Re: Return proper status codes (404, 302) from client-side Single Page Application

B.R.
August 08, 2016 10:44AM
Sending 404 allows providing body content, and displaying beautiful pages
is not restricted to 200. Thus, I do not get the 200 status sent to clients..
My suggestion would be sending the same HTTP status code to everyone,
choosing the most semantically correct in doing so.

We are drifting away from the topic, though.
You got some technical answers to your original question, the rest remains
out of scope.​
---
*B. R.*

On Mon, Aug 8, 2016 at 12:15 PM, msonntag <nginx-forum@forum.nginx.org>
wrote:

> Hey B. R.,
>
> Thanks for your reply! I will have a look at the provided resources.
>
> As per your comment:
>
> > I find it strange you oppose HTTP 404 with 'a proper status code': 404 is
> a 'proper' status code.
> > I find it even stranger you want to lie to search engines crawlers about
> the existence of your resource.
>
> Maybe my wording was just misleading. Of course 404 is a "proper" status
> code and my posting was all about how to be able to return the appropriate
> code (404 in case the item does not exist) to the crawler instead of the
> 200
> that it will see if I just deliver the client application and show a "soft"
> 404 error – which is my current setup which I want to improve by checking
> the item's existence prior to delivering the response.
>
> Thanks again.
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,268827,268829#msg-268829
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Return proper status codes (404, 302) from client-side Single Page Application

msonntag August 08, 2016 05:50AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

B.R. August 08, 2016 06:06AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

msonntag August 08, 2016 06:15AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

B.R. August 08, 2016 10:44AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

msonntag August 08, 2016 11:07AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

Edho Arief August 08, 2016 11:18AM

Re: Return proper status codes (404, 302) from client-side Single Page Application

msonntag August 08, 2016 12:59PM

Re: Return proper status codes (404, 302) from client-side Single Page Application

Edho Arief August 08, 2016 01:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 157
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready