views:

139

answers:

1

folks,

How can I differentiate between error codes and status codes in case of Servlet response? Is it right to say that there is some status codes in HttpServletResponse class which show errors. Or I've to use more definite way to differentiate between them?

+2  A: 

HTTP status codes are considered "client errors" if they are in the 400-499 range and "server errors" if they're above 500.

They're also defined as constants in the HttpServletResponse class.

ChssPly76