How to raise validation errors (HTTP status code 400) in Delphi DataSnap REST -


by default - if datasnap method (which declared inside {$methodinfo on} , {$methodinfo off}) experiences exception, datasnap returns http response status code 500 , simple message {"error":"sql error... whatever..."}. fine system errors, handle validation errors separately - returning extended error message , http code 400. possible do?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -