bugid:16838 Fixed Sailthru Response to verify error responses, and make ...

...more Pythonic code