Version: 2.0.0 (latest)

404 Page

You are reading the documentation for version 2 of FoalTS. Instructions for upgrading to this version are available here. The old documentation can be found here.

Here's a way to implement custom 404 pages.

class ViewController {
home() {
return new HttpResponseOK('You are on the home page!');
class AppController {
subControllers = [ ViewController ];
notFound() {
return new HttpResponseNotFound('The page your are looking for does not exist');