Status codes

The response starts with the status code. These codes are also defined, and there are a limited number of codes usable in a response. The most important is 200, which says everything is OK; the response contains what the request wanted. The codes are always in the range from 100 to 599, and contain three digits. They are grouped according to the first digit as follows:

  • 1xx: These codes are information codes. They are rarely used but can be very important in some cases. For example, 100 means continue. A server can send this code when it gets a POST request and the server wants to signal the client to send the body of the request because it can process it. Using this code, and the client then waiting for this code, may save a ...

Get Java Projects - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.