* YOYO NEW API SPEC! * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * tuples Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates; Signed-off-by: Jess Frazelle <github@jessfraz.com> * I have generated the latest API! --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
14 lines
388 B
Python
14 lines
388 B
Python
from enum import Enum
|
|
|
|
|
|
class ErrorCode(str, Enum):
|
|
"""The type of errorcode.""" # noqa: E501
|
|
|
|
"""# User requested something impossible or invalid """ # noqa: E501
|
|
BAD_REQUEST = "bad_request"
|
|
"""# Engine failed to complete request, consider retrying """ # noqa: E501
|
|
INTERNAL_ENGINE = "internal_engine"
|
|
|
|
def __str__(self) -> str:
|
|
return str(self.value)
|