Oauth2 client fix http error behavior

Changed behavior so that OAuth2Client does not throw anymore when a StatusCode != 200 is received.