Re: Friendly HTTP error message
Sviatoslav Sydorenko <[email protected]> Fri, 25 Aug 2017 03:35:03 -0700 (PDT)
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
Hi Serge, середа, 26 липня 2017 р. 10:57:02 UTC+3 користувач Serge Z написав: > > Is there pattern to show friendy HTTP-error messages like 404 or 500 > instead of standart ones? > You can set `error_page.404` and `error_page.500` options respectively. The value for such option shall be FS path to the HTML template or a python callable. You can also set up `before_error_response` hook if applicable. -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. For more options, visit https://groups.google.com/d/optout.