In chat(), check for failed delivery of request headers and body separately