Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ne_status(3) [debian man page]

NE_STATUS(3)							neon API reference						      NE_STATUS(3)

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[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 SEE ALSO
ne_get_status. AUTHOR
Joe Orton <neon@lists.manyfish.co.uk> Author. COPYRIGHT
NOTES
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) neon 0.29.6 3 May 2011 NE_STATUS(3)

Check Out this Related Man Page

NE_GET_STATUS(3)						neon API reference						  NE_GET_STATUS(3)

NAME
ne_get_status - retrieve HTTP response status for request SYNOPSIS
#include <ne_request.h> const ne_status *ne_get_status (const ne_request *request); DESCRIPTION
The ne_get_status function returns a pointer to the HTTP status object giving the result of a request. The object returned only becomes valid once the request has been successfully dispatched (the return value of ne_request_dispatch or ne_begin_request was zero). The object remains valid until the associated request object is destroyed. SEE ALSO
ne_status(3), ne_request_create(3) EXAMPLE
Display the response status code of applying the HEAD method to some resource. ne_request *req = ne_request_create(sess, "HEAD", "/foo/bar"); if (ne_request_dispatch(req)) /* handle errors... */ else printf("Response status code was %d ", ne_get_status(req)->code); ne_request_destroy(req); AUTHOR
Joe Orton <neon@webdav.org>. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWneon | +--------------------+-----------------+ |Interface Stability | Volatile | +--------------------+-----------------+ NOTES
Source for Neon is available on http://opensolaris.org. neon 0.25.5 20 January 2006 NE_GET_STATUS(3)
Man Page