Added a separate getErrorResponse method in the Front Controller objects