Fix unit tests.
Handle more HTTP error codes.
Add OAuth example.