httpresponses and exeption catching in controller