Making the controller responsible for generating error html