add support for HttpResponses
fix code review issues