NE_STATUS(3) | neon API reference | NE_STATUS(3) |
ne_status - HTTP status structure
#include <ne_utils.h> typedef struct {
int major_version, minor_version;
int code, klass;
const char *reason_phrase; } ne_status;
An 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 HTTP version supported by the server issuing the response. The code field gives the status code of the result (lying between 100 and 999 inclusive), and the klass field gives the class[1], which is equal to the most significant digit of the status.
There are five classes of HTTP status code defined by RFC2616:
1xx
2xx
3xx
4xx
5xx
ne_get_status.
Joe Orton <neon@lists.manyfish.co.uk>
28 June 2020 | neon 0.0.0-dev |