简体   繁体   中英

Difference between status codes and error codes

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM