GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
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

Informational response.

2xx

Success: the operation was successful

3xx

Redirection

4xx

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

5xx

Server error

ne_get_status.

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

1.
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)

12 January 2022 neon 0.32.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.