fixed ses response error handling.