ne_status — HTTP status structure
#include <ne_utils.h>
typedef struct {
int major_version;
int minor_version;
int code;
int klass;
char *reason_phrase;
} ne_status;The ne_status type represents an HTTP
response status; used in response messages giving a result of
request. The major_version and
minor_version fields give the
protocol version supported by the server issuing the response.
The code field gives the status
code of the result (lying between 100 and
599 inclusive), and the
klass field gives the class, which
is equal to the most significant digit of the status. The
reason_phrase field gives a
human-readable string describing the status, which is purely
informational (and optional) - any interpretation of the
response status must be done using the
klass and/or
code fields.
There are five classes of response status code defined for HTTP/1.1 (see RFC 9110 ẞ15):
| Informational response. |
| Success: the operation was successful |
| Redirection |
| Client error: the request made was incorrect in some manner. |
| Server error |