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; } ne_status;
15
16
17

DESCRIPTION

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

SEE ALSO

46       ne_get_status(3).
47
48

AUTHOR

50       Joe Orton <neon@webdav.org>.
51
52
53
54neon 0.25.5                     20 January 2006                   NE_STATUS(3)
Impressum