added headers information to exception