wires up 404 and 500 template