[Zope] 404 error

Tres Seaver tseaver at palladion.com
Sat Mar 21 08:56:58 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

garry at schoolteachers.co.uk wrote:
> I am trying to verify my site with google but keep getting this error:
> 
> We've detected that your 404 (file not found) error page returns a status of 200
> (Success) in the header.
> 
> How could I correct this?

- - Have the code in your your 'standard_error_template' which deals with
  missing items call 'request["RESPONSE"].setStatus(404)'.

- - Don't handle those errors in your 'standard_error_template' at all.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJxOQa+gerLs4ltQ4RAhiLAJ93lmPPgmyPTpPz177gGkYD8GqhygCggmTr
ul0Nb2j4x7hAhcDO7NTox8Y=
=94Gw
-----END PGP SIGNATURE-----



More information about the Zope mailing list