Added a function to return the status code from a response.
Merge pull request #11 from mtudor/feature/get-status-from-response

Added a function to return the status code from a response.