If a status code is sent back and an error is being sent use that status
code as the error code to allow client code to easily get the failing
status code from the NSError.