Error Codes
Error Code Format:
"ROW_NUMBER","DOMAIN","ACTION","ERROR_CODE","ERROR_MESSAGE"
Input file example:
-
● domain,action
-
● missing-action.test.com
-
● empty-action.test.com,
-
● one.test.com,add,extra-column
Example error output while updating the feed using the input file example:
"ROW_NUMBER","DOMAIN","ACTION","ERROR_CODE","ERROR_MESSAGE"
"1","missing-action.test.com","4005","Invalid row. Number of data fields does not match number of headers."
"2","empty-action.test.com,","4005","Invalid row. Field 'action' is mandatory but no value was provided."
"3","one.test.com,add,extra-column","4005","Invalid row. Number of data fields does not match number of headers."
Use the row number to locate the request you made in the order of processing. These errors can occur if the csv contained multiple rows or was missing a domain or action.
Errors include the error message along with the code to improve readability. Here is a complete list of possible codes and descriptions:
UNKNOWN_ERROR("5000", "Unexpected error occurred. Please retry."),
BAD_REQUEST("4000", "Invalid input"),
INCORRECT_ACTION("4001", "Invalid action. Supported values are " +
Arrays.toString(UpdateElementAction.values())),
INVALID_DOMAIN("4003", "Invalid domain name."),
MAX_LIMIT_REACHED("4004", "Limit Reached." "The feed contains 0 domains. Limit is [1]."),
INVALID_ROW("4005", "Invalid row. 0");