"Fossies" - the Fresh Open Source Software Archive

Member "neon-0.31.2/doc/html/refstatus.html" (20 Jun 2020, 4267 Bytes) of package /linux/www/neon-0.31.2.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

Name

ne_status — HTTP status structure

Synopsis

#include <ne_utils.h>

typedef struct {
    int major_version, minor_version;
    int code, klass;
    const char *reason_phrase;
} ne_status;

Description

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[2], which is equal to the most significant digit of the status.

There are five classes of HTTP status code defined by RFC2616:

1xx

Informational response.

2xx

Success: the operation was successful

3xx

Redirection

4xx

Client error: the request made was incorrect in some manner.

5xx

Server error

See also

ne_get_status.



[2] the field is named klass not class so that the header can be used from a C++ program, in which class is a reserved word)