Changed HTTP response codes of controller