Code:
public enum SPELL_FAILED_REASON: byte
{
Success = 0,
AffectingCombat = 1,
AlreadyAtFullHealth = 2,
AlreadyAtFullMana = 3,
AlreadyAtFullPower = 4,
AlreadyBeingTamed = 5,
AlreadyHaveCharm = 6,
AlreadyHaveSummon = 7,
AlreadyOpen = 8,
AuraBounced = 9,
AutotrackInterrupted = 10,
BadImplicitTargets = 11,
BadTargets = 12,
CantBeCharmed = 13,
CantBeDisenchanted = 14,
CantBeDisenchantedSkill = 15,
CantBeMilled = 16,
CantBeProspected = 17,
CantCastOnTapped = 18,
CantDuelWhileInvisible = 19,
CantDuelWhileStealthed = 20,
CantStealth = 21,
CasterAurastate = 22,
CasterDead = 23,
Charmed = 24,
ChestInUse = 25,
Confused = 26,
DontReport = 27,
EquippedItem = 28,
EquippedItemClass = 29,
EquippedItemClassMainhand = 30,
EquippedItemClassOffhand = 31,
Error = 32,
Fizzle = 33,
Fleeing = 34,
FoodLowlevel = 35,
Highlevel = 36,
HungerSatiated = 37,
Immune = 38,
IncorrectArea = 39,
Interrupted = 40,
InterruptedCombat = 41,
ItemAlreadyEnchanted = 42,
ItemGone = 43,
ItemNotFound = 44,
ItemNotReady = 45,
LevelRequirement = 46,
LineOfSight = 47,
TargetLowlevel = 48,
LowCastlevel = 49,
MainhandEmpty = 50,
Moving = 51,
NeedAmmo = 52,
NeedAmmoPouch = 53,
NeedExoticAmmo = 54,
NeedMoreItems = 55,
Nopath = 56,
NotBehind = 57,
NotFishable = 58,
NotFlying = 59,
NotHere = 60,
NotInfront = 61,
NotInControl = 62,
NotKnown = 63,
NotMounted = 64,
NotOnTaxi = 65,
NotOnTransport = 66,
NotReady = 67,
NotShapeshift = 68,
NotStanding = 69,
NotTradeable = 70,
NotTrading = 71,
NotUnsheathed = 72,
NotWhileGhost = 73,
NotWhileLooting = 74,
NoAmmo = 75,
NoChargesRemain = 76,
NoChampion = 77,
NoComboPoints = 78,
NoDueling = 79,
NoEndurance = 80,
NoFish = 81,
NoItemsWhileShapeshifted = 82,
NoMountsAllowed = 83,
NoPet = 84,
NoPower = 85,
NothingToDispel = 86,
NothingToSteal = 87,
OnlyAbovewater = 88,
OnlyDaytime = 89,
OnlyIndoors = 90,
OnlyMounted = 91,
OnlyNighttime = 92,
OnlyOutdoors = 93,
OnlyShapeshift = 94,
OnlyStealthed = 95,
OnlyUnderwater = 96,
OutOfRange = 97,
Pacified = 98,
Possessed = 99,
Reagents = 100,
RequiresArea = 101,
RequiresSpellFocus = 102,
Rooted = 103,
Silenced = 104,
SpellInProgress = 105,
SpellLearned = 106,
SpellUnavailable = 107,
Stunned = 108,
TargetsDead = 109,
TargetAffectingCombat = 110,
TargetAurastate = 111,
TargetDueling = 112,
TargetEnemy = 113,
TargetEnraged = 114,
TargetFriendly = 115,
TargetInCombat = 116,
TargetIsPlayer = 117,
TargetIsPlayerControlled = 118,
TargetNotDead = 119,
TargetNotInParty = 120,
TargetNotLooted = 121,
TargetNotPlayer = 122,
TargetNoPockets = 123,
TargetNoWeapons = 124,
TargetNoRangedWeapons = 125,
TargetUnskinnable = 126,
ThirstSatiated = 127,
TooClose = 128,
TooManyOfItem = 129,
TotemCategory = 130,
Totems = 131,
TryAgain = 132,
UnitNotBehind = 133,
UnitNotInfront = 134,
WrongPetFood = 135,
NotWhileFatigued = 136,
TargetNotInInstance = 137,
NotWhileTrading = 138,
TargetNotInRaid = 139,
TargetFreeforall = 140,
NoEdibleCorpses = 141,
OnlyBattlegrounds = 142,
TargetNotGhost = 143,
TransformUnusable = 144,
WrongWeather = 145,
DamageImmune = 146,
PreventedByMechanic = 147,
PlayTime = 148,
Reputation = 149,
MinSkill = 150,
NotInArena = 151,
NotOnShapeshift = 152,
NotOnStealthed = 153,
NotOnDamageImmune = 154,
NotOnMounted = 155,
TooShallow = 156,
TargetNotInSanctuary = 157,
TargetIsTrivial = 158,
BmOrInvisgod = 159,
ExpertRidingRequirement = 160,
ArtisanRidingRequirement = 161,
NotIdle = 162,
NotInactive = 163,
PartialPlaytime = 164,
NoPlaytime = 165,
NotInBattleground = 166,
NotInRaidInstance = 167,
OnlyInArena = 168,
TargetLockedToRaidInstance = 169,
OnUseEnchant = 170,
NotOnGround = 171,
CustomError = 172,
TooManySockets = 173,
CantDoThatRightNow = 173,
InvalidGlyph = 175,
UniqueGlyph = 176,
GlyphSocketLocked = 177,
NoValidTargets = 178,
ItemAtMaxCharges = 179,
NotInBarbershop = 180,
FishingTooLow = 181,
ItemEnchantTradeWindow = 182,
SummonPending = 183,
MaxSockets = 184,
PetCanRename = 185,
TargetCannotBeResurrected = 186,
Unknown = 187,
Ok = 0xFF
}