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

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -