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

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -