Refactoring in |raise_for_status| method.
Refactoring in |raise_for_status| method.

- Simplified the if statements.
- Remove duplicate code.

psf/requests,revolunet/requests,Bluehorn/requests,revolunet/requests