java - Should GET requests be allowed to trigger exceptions? -


I am developing a comfortable server I am trying to add HTML injection check (cleanliness) for all 4 tasks . At the error, I am planning to throw exceptions. I think post, throw operation can throw exceptions, but there is no doubt that GET and DELETE can do the action exception (from design perspective). An empty one is required for the design docs, if there is a SQL / html injection in the input, it seems wired to throw an exception from the GET operation. Thank you.

With REST you should return the correct HTML status code, do not throw exceptions.


Comments

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

import - Python ImportError: No module named wmi -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -