Error Responses
Learn about the different reasons API requests might fail or return error codes.
Our API responses will follow this structure in the case of any failures:
Our APIs may return a failure response based on following scenarios:
-
Input Validation: We perform JSON validation for inputs so you may expect a
400
response if required fields are missing or are invalid. -
Missing Records: There may be situations where the requested record, such as a contact or property doesn’t exist in Fello, in such cases you can expect a
404
response. -
Scenario-Based Validation: There may be cases which may reject the API due to product-level validations, such as invalid addresses, which can also cause a
400
response. -
Too Many Requests: See Rate Limiting for more details.
-
Server Issues: In rare cases our APIs may throw intermittent errors due to unforeseen server issues.
Error Codes
Following are the error codes which may be returned in case of scenarios mentioned above:
Code | Enum Value |
---|---|
ContactDoesNotExist | Requested Contact Not Found |
PropertyDoesNotExist | Requested Property Not Found |
InvalidAddress | Invalid Address - Address Validation failed |
DuplicateProperty | Duplicate Property - When trying to add a new address to an existing contact |
DuplicateContact | Duplicate Contact - Contact with same email id already exists |
InvalidRequest | Request is invalid - could be due to JSON validation or situational based. There will also be supporting data in "data" object to support the validation. |