MARX#82611 API errors vaker als 400 status
svn path=/Website/trunk/; revision=65050
This commit is contained in:
@@ -727,6 +727,14 @@ function upsertKenmerk(kenmerken, stdmld_key, mld_key)
|
||||
|
||||
xmlResp.appendChild(FCLTElement);
|
||||
|
||||
if (API.apidata.errorhandling == 1)
|
||||
{
|
||||
if (resultcode > 0) // -1 en 0 zijn 'goed'
|
||||
{
|
||||
Response.Status = '400 Bad Request';
|
||||
}
|
||||
}
|
||||
|
||||
Response.ContentType = "text/xml";
|
||||
if (API.apidata.stylesheet)
|
||||
{
|
||||
|
||||
@@ -1391,6 +1391,14 @@ function upsertOpdrRegels(regels, mld_opdr)
|
||||
|
||||
xmlResp.appendChild(FCLTElement);
|
||||
|
||||
if (API.apidata.errorhandling == 1)
|
||||
{
|
||||
if (resultcode > 0) // -1 en 0 zijn 'goed'
|
||||
{
|
||||
Response.Status = '400 Bad Request';
|
||||
}
|
||||
}
|
||||
|
||||
Response.ContentType = "text/xml";
|
||||
if (API.apidata.stylesheet)
|
||||
{ // Niet super efficient dat we eerst naar tekstuele xml gaan maar ach...
|
||||
|
||||
Reference in New Issue
Block a user