Skip to content

Commit 4df0f6a

Browse files
Merge pull request #9 from socketlabs/usr/bharrison/SS-3030
Added MetadataOrTagsAreTooLarge Error
2 parents 15d1e4e + 0bbf444 commit 4df0f6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

socketlabs/injectionapi/sendresult.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ class SendResult(Enum):
120120
""" SDK Validation Error : Message contains invalid metadata """
121121
MessageValidationInvalidMetadata = 37
122122

123+
""" Metadata and tags exceed 12.5KB """
124+
MetadataOrTagsAreTooLarge = 38
125+
123126
def __str__(self):
124127
"""
125128
String representation of the SendResult Enum
@@ -172,6 +175,7 @@ def __str__(self):
172175
"Invalid Custom Headers were found in the message",
173176
37: "SDK Validation Error : "
174177
"Message contains invalid metadata",
178+
38: "Metadata and tags exceed 12.5KB"
175179
}
176180
return switcher.get(self.value, "An error has occurred that was unforeseen")
177181

0 commit comments

Comments
 (0)