fixing issue with response error reporting