add 2 missing data types for df percentages
df: rename percentage types to a more generic name
df: remove trailing whitespaces
Merge remote-tracking branch 'origin/pr/371'
On error, write error to client handle, and to thread local storage

This allows connection errors to be retrieved