Recording transactions with error responses