Added patch by Richard Shaffer to detecth HTTP Response Codes early in the transaction