Use contextlib.nested instead of nested with statements
Add clarification on response code exception text