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

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