Better error message when header doesn’t contains expeted value