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
Post a Comment