Description
Description | Code | Message | Description |
|---|---|---|
| 101 | Continue | Only a part of the solicitation has been gotten by the server, however the length of it has not been rejected, the customer should continue with the solicitation. |
| 200 | Ok | Request is ok |
| 202 | Granted | The request granted but not completed. |
| 204 | No Content | Server got the request but data is not there to send. |
| 302 | Found | Asked page has moved to new URL briefly. |
| 400 | Not Found | Server can't discover the solicitation page. |
| 401 | Unauthorized | This page needs user name and password. |
| 404 | Bad Request | Server is unable to get the request. |
| 408 | Request Time out | The server was waiting to give reply. |
| 500 | Internal Server Error | Problem was caused by server. |
| 503 | Service Unavailable | Server down |
| 505 | HTTP Version not supported | Server is not supporting to HTTP version. |
Methods | Methods | Description |
|---|---|
| public void sendRedirect(String url) | Gives 302 response and gives URL of new record. |
| public void setStatus ( int statusCode ) | It takes int as an argument, setStatus before really giving back any of the substance with the PrintWriter. |
| public void sendError(int code, String message) | It sends the error with shot message to the client. |
Example
Key Points