Jouke Waleson on December 30, 2014
The Mendix Cloud has a new feature you might like: Custom error pages.
Whenever your application is stopped, you are presented with the infamous green monsters that were originally created for Tumblr:
Some customers wanted to present their users with a more Professional ™ looking page when the application was down. The tongue-in-cheek style of our status page, the GitHub 404 page or the Google version might not be for everyone, and that’s why we allow customers to create Custom Error Pages. Here’s how:
In your theme directory create an error_page folder, which contains the file offline.html and optionally 404.html and 403.html. In these html files, you can only refer to external resources or resources under the absolute path /error_page/. The /error_page/ path is the only one that will be available when the application is stopped.
An example offline.html/404.html/403.html page would look like this:
The different files serve different purposes:
If you do not create these files the default “green monsters” will be used instead for each scenario.
If you’re interested in the technical implementation, read this post on the Mendix R&D blog.
Receive Mendix platform tips, tricks, and other resources straight to your inbox every two weeks.