| Status codes and responses |
This topic contains the following sections:
For all template web service calls, errors are returned through the response and HTTP status codes.
For web service calls that execute a template, a status code of 200 indicates that the template completed successfully, however, individual entries might have failed. In that case, the JSON response body includes information about the number of failed, created, updated, and deleted changes and information about the failures.
For example:
{
"Created": 2,
"Deleted": 0,
"Failed": 2,
"Updated": 0,
"Failed Records": [
{
"errorInfo": [
{
"errorText": "131 invalid for Lat. Value must be between -90 - 90 degrees",
"errorCode": "3.4.2",
"errorParameters": {
"parameter": "Lat",
"value": "131"
}
}
],
"Error Messages:": "131 invalid for Lat. Value must be between -90 - 90 degrees",
"InputRow": 3
}
],
"Parse Failed Records": [
{
"InputRow": 1,
"Row": "668733,Marker 5,3394,Esperanza Xing,Austin,Texas,78758,bob,-97.7267097071832,,\"3394 Esperanza Xing, Austin, Travis, Texas, 78758\",False,,,,,\"Mon, Wed, Fri\",hello my name is,,front porch,,1,2,,1",
"Reason": "Cannot convert Text to Angle.",
"errorInfo": [
{
"errorText": "Cannot convert Text to Angle.",
"errorCode": "3.2.1"
}
]
}
]When you are trying to execute a template and get back an error return status code (400s or 500s), then the response contains a JSON object describing the errors that have occurred. For example:
{
"errorInfo":[
{
"errorCode":"5",
"errorText":"Internal server error.",
"errorParameters":[
{
"parameter":"ExecutionId",
"value":"123a8eec-321f-1ae2-3214-00a123abc0aa"
}
]
}
],
"errorText":"Internal server error."
}