Added method to retrieve status code
Factored out preparing the response
Added toString method for response
Added some unit tests for response