capture server errors and log request/response data
===