handle response exceptions