Update api spec (#124)
* 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>
This commit is contained in:
13
kittycad/models/error_code.py
Normal file
13
kittycad/models/error_code.py
Normal file
@ -0,0 +1,13 @@
|
||||
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)
|
Reference in New Issue
Block a user