sorry, I do use sp3 did a typo.
I may have been wrong it might trigger on error but it does not get the ajax.lastdata if there is an httpcode of 400.(the browser continues to read the same url,but maybe this is not ok for ajax?
what my rest is doing:
if you dot send correct in data it will give an httpcode of 400 and output the error message in xml, as this: dev.canvaramanager.com/vlt/api/api.php
now i want construct to atleast return the lastdata so i can properly display an error message,
yeah i know i can remove the setting of httpcode from the rest api but then i would violate best practices of rest.