Add option to provide a custom method handler in sendRequest.
Test Twitter error response code handling.