There are following methods which can be used to set HTTP Status Code in your servlet program. These method are available with HttpServletResponse object.
|
S.N. |
Method & Description |
|
1 |
public void setStatus ( int statusCode ) |
|
2 |
public void sendRedirect(String url) |
|
3 |
public void sendError(int code, String message) |