1NE_STATUS(3)                  neon API reference                  NE_STATUS(3)
2
3
4

NAME

6       ne_status - HTTP status structure
7

SYNOPSIS

9       #include <ne_utils.h>
10
11       typedef struct {
12           int major_version, minor_version;
13           int code, klass;
14           const char *reason_phrase;
15       } ne_status;
16

DESCRIPTION

18       An ne_status type represents an HTTP response status; used in response
19       messages giving a result of request. The major_version and
20       minor_version fields give the HTTP version supported by the server
21       issuing the response. The code field gives the status code of the
22       result (lying between 100 and 999 inclusive), and the klass field gives
23       the class[1], which is equal to the most significant digit of the
24       status.
25
26       There are five classes of HTTP status code defined by RFC2616:
27
28       1xx
29           Informational response.
30
31       2xx
32           Success: the operation was successful
33
34       3xx
35           Redirection
36
37       4xx
38           Client error: the request made was incorrect in some manner.
39
40       5xx
41           Server error
42

SEE ALSO

44       ne_get_status.
45

AUTHOR

47       Joe Orton <neon@lists.manyfish.co.uk>
48           Author.
49

NOTES

52        1. the field is named “klass” not “class” so that the header can be
53           used from a C++ program, in which “class” is a reserved word)
54
55
56
57
58neon 0.30.0                      31 July 2013                     NE_STATUS(3)
Impressum