pass additional error object keys when returning errors in callbacks