MARX#82611 API errors vaker als 400 status

svn path=/Website/trunk/; revision=65050
This commit is contained in:
Jos Groot Lipman
2024-06-10 12:00:14 +00:00
parent e2d2d6ed4b
commit 11f9d45ac1
2 changed files with 16 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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...