Improve exception message when setting request headers after request data