Handled Exceptions at controller layer and also changed request URL for
the controller.