Homec4science

WebStyle: better HTTP return statuses 404/500

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Nov 12 2009, 15:20.

Description

WebStyle: better HTTP return statuses 404/500

  • In mod_python-like legacy publisher implementation, resolve only to callable names, otherwise return 404.
  • In mod_python-like legacy publisher implementation, alert the admin via email about wrong parameters being passed only when CFG_DEVEL_SITE is True.
  • In case of unexpected error, return HTTP status 500.
  • Removed useless call to wsgiref.util.setup_testing_defaults.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Nov 13 2009, 14:27
Parents
R3600:6de95a9606d6: BibRank: fixed download history graph display
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:d119438f2468: WebStyle: better HTTP return statuses 404/500 (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Nov 13 2009, 14:27