Adding a response class to handle http responses.