Likely pyramid.httpexceptions.HTTPSeeOther should be used instead (status code 303).
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html > > The new URI is not a substitute reference for the originally requested > resource. On Fri, Feb 10, 2012 at 11:48 AM, Mike Orr <sluggos...@gmail.com> wrote: > On Fri, Feb 10, 2012 at 9:24 AM, Simon Yarde <simonya...@me.com> wrote: > > I always seem to find the meaning of http status code 302 rather odd in > the > > auth context because it says "The requested resource resides temporarily > > under a different URI", which is not accurate but seems to be the best > fit. > > I've been wondering that too. How is it throwing off search engines, > or do they parse the page to guess if it's a login form. There should > either be a code for redirect with error, or 4xx errors should also be > allowed to have a Location header. > > -- > Mike Orr <sluggos...@gmail.com> > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to pylons-discuss@googlegroups.com. > To unsubscribe from this group, send email to > pylons-discuss+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.