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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -