Minor fix in html helper
Create controllers/httperror.php
Refactor ControllerBase and handle method errors.