1234567891011121314151617181920212223242526272829303132 |
- <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>ne_status</title><link rel="stylesheet" type="text/css" href="manual.css"><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="neon HTTP/WebDAV client library"><link rel="up" href="ref.html" title="neon API reference"><link rel="prev" href="refclicert.html" title="ne_ssl_client_cert"><link rel="next" href="reftok.html" title="ne_token"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">ne_status</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="refclicert.html">Prev</a> </td><th width="60%" align="center">neon API reference</th><td width="20%" align="right"> <a accesskey="n" href="reftok.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="refstatus"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ne_status — HTTP status structure</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include <ne_utils.h>
- typedef struct {
- int major_version;
- int minor_version;
- int code;
- int klass;
- char *reason_phrase;
- } <em class="type">ne_status</em>;</pre></div></div><div class="refsect1"><a name="id4396"></a><h2>Description</h2><p>The <em class="type">ne_status</em> type represents an HTTP
- response status; used in response messages giving a result of
- request. The <em class="structfield"><code>major_version</code></em> and
- <em class="structfield"><code>minor_version</code></em> fields give the
- protocol version supported by the server issuing the response.
- The <em class="structfield"><code>code</code></em> field gives the status
- code of the result (lying between <code class="literal">100</code> and
- <code class="literal">599</code> inclusive), and the
- <em class="structfield"><code>klass</code></em> field gives the class, which
- is equal to the most significant digit of the status. The
- <em class="structfield"><code>reason_phrase</code></em> field gives a
- human-readable string describing the status, which is purely
- informational (and optional) - any interpretation of the
- response status must be done using the
- <em class="structfield"><code>klass</code></em> and/or
- <em class="structfield"><code>code</code></em> fields.</p><p>There are five classes of response status code defined
- for HTTP/1.1 (see <a class="ulink" href="https://www.rfc-editor.org/rfc/rfc9110#name-status-codes" target="_top">RFC
- 9110 ẞ15</a>):</p><div class="variablelist"><table border="0" class="variablelist"><colgroup><col align="left" valign="top"><col></colgroup><tbody><tr><td><p><span class="term"><code class="literal">1xx</code></span></p></td><td>Informational response.</td></tr><tr><td><p><span class="term"><code class="literal">2xx</code></span></p></td><td>Success: the operation was successful</td></tr><tr><td><p><span class="term"><code class="literal">3xx</code></span></p></td><td>Redirection</td></tr><tr><td><p><span class="term"><code class="literal">4xx</code></span></p></td><td>Client
- error: the request made was incorrect in some
- manner.</td></tr><tr><td><p><span class="term"><code class="literal">5xx</code></span></p></td><td>Server error</td></tr></tbody></table></div></div><div class="refsect1"><a name="id4437"></a><h2>Notes</h2><p>The
- <em class="structfield"><code>klass</code></em> field is named
- <span class="quote">“<span class="quote">klass</span>”</span> not <span class="quote">“<span class="quote">class</span>”</span> so that the header
- can be used from a C++ program, in which <span class="quote">“<span class="quote">class</span>”</span> is
- a reserved word.</p></div><div class="refsect1"><a name="id4444"></a><h2>See also</h2><p><a class="xref" href="refgetst.html#ne_get_status">ne_get_status</a>.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="refclicert.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ref.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="reftok.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ne_ssl_client_cert </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> ne_token</td></tr></table></div></body></html>
|