Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom error pages for 404, 500 status codes #110

Open
GoogleCodeExporter opened this issue Aug 28, 2015 · 2 comments
Open

Custom error pages for 404, 500 status codes #110

GoogleCodeExporter opened this issue Aug 28, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Aug 28, 2015

This can be implemented either through Mongoose web server error handling mechanism, or through the OnLoadError() callback in CEF.

For now I see only use for it for 404 pages. But there might be other cases, like directory listing denial (500?). PHP errors can be handled via set_error_handler and set_exception_handler functions. Though we might support all 5xx status codes here as well.

Support for other error codes should be straightforward to add, see

// Called when mongoose is about to send HTTP error to the client.

See also related issues that are about friendly error messages:

Original issue reported on code.google.com by [email protected] on 8 May 2014 at 11:28

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Aug 28, 2015

Hi,
If there was an option (a settings.json parameter) to set a single error page for all possible errors then too it was great. The need to for separate error pages for 404,500 etc might be minimum, but the certainly there is good need and use for a common/general custom error page.
Thanks and regards,
Sreenadh

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Aug 28, 2015

New option ["web_server"]["404_handler"] was added to settings.json that allows for handling 404 errors, which in turn allows pretty url rewrites. See for more details:
https://code.google.com/p/phpdesktop/issues/detail?id=81#c10

Original comment by [email protected] on 27 Oct 2014 at 12:07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants