Errors
Every request done to Timecut can response with an errors. There are two different errors that you can obtain:
- Errors related with the inapropiate use of the API: errors that indicates an invalid operation during the time or context executed. Example: try to publish an advert that has not been created.
- Errors related with invalid arguments or options passed throw: the content of an advert is invalid.
Error Dto
The Error DTO has a format as the following:
{
"ErrorType": 0,
"Message": "",
"ClientMessage": "",
"OtherValues": null
} |
Where:
- ErrorType: technical number that represent the type of error.
- Message: technical message that explain the context of the error.
- ClientMessage: friendly message that may be displayed to the user (optional and nullable).
- OtherValues: dictionary (key, value) with other useful values (optional and nullable).
List of current ErrorType:
- 0: NoError
- 100: Session
- 200: Unhandled
- 300: AccountAuthenticationInvalid
- 301: AccountErrorGetting
- 400: InvalidOrMissingArguments
