Closed coldfgirl closed 3 years ago
Adding more errors to have better granularity. The structure and thought behind these additions is as follows:
The resource trying to be created already exists.
Changes to a resource cannot be performed due to conflicts with other existing resources.
Resource is not found.
Data provided is of the correct type but is in a format that could not be understood.
Data provided was invalid.
Data was expected but is missing.
Data has been provded in an unsupported type.
A dependency hasn’t been initialized but is required.
An I/O operation failed.
Data could not be loaded.
Network operation failed.
Current context does not have permission to access this action.
The action is disabled (feature flagging, etc) in a way that’s not necessarily specific to this context.
The action has been temporarily limited (rate limiting, etc) in a way that is not based off of the application state.
Oops, wrong fork sorry!
I was wondering why a JIRA ticket was attached. :laughing:
Adding more errors to have better granularity. The structure and thought behind these additions is as follows:
Data State Errors
AlreadyExists [NEW]
The resource trying to be created already exists.
ConflictingChanges [NEW]
Changes to a resource cannot be performed due to conflicts with other existing resources.
NotFound
Resource is not found.
Parameter Errors
BadFormat [NEW]
Data provided is of the correct type but is in a format that could not be understood.
InvalidArgument
Data provided was invalid.
MissingAgrument [NEW]
Data was expected but is missing.
UnsupportedType
Data has been provded in an unsupported type.
Uninitialzied [NEW]
A dependency hasn’t been initialized but is required.
General System Errors
IO [NEW]
An I/O operation failed.
DataLoad
Data could not be loaded.
Network [NEW]
Network operation failed.
Permission Errors
AccessDenied [NEW]
Current context does not have permission to access this action.
Disabled [NEW]
The action is disabled (feature flagging, etc) in a way that’s not necessarily specific to this context.
Limited [NEW]
The action has been temporarily limited (rate limiting, etc) in a way that is not based off of the application state.