Improve Hank API internal error reporting.