---
name: "ne_status"
section: "3"
platform: "linux"
package: "neon"
version: "0.37.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ne_status"
---

# ne\_status(3)

HTTP status structure

## NAME

ne\_status - HTTP status structure

## SYNOPSIS

```
#include <ne_utils.h>
typedef struct {
    int major_version;
    int minor_version;
    int code;
    int klass;
    char *reason_phrase;
} ne_status;
```

## DESCRIPTION

The **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 protocol version supported by the server issuing the response. The *code* field gives the status code of the result (lying between 100 and 599 inclusive), and the *klass* field gives the class, which is equal to the most significant digit of the status. The *reason\_phrase* 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 *klass* and/or *code* fields.

There are five classes of response status code defined for HTTP/1.1 (see **RFC 9110 §15**\[1\]):

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

## NOTES

The *klass* field is named “klass” not “class” so that the header can be used from a C++ program, in which “class” is a reserved word.

## SEE ALSO

[**ne\_get\_status**(3)](/ne_get_status/3.md).

## COPYRIGHT

Copyright © 2001-2026 Joe Orton\

## REFERENCES

- 1\.

  RFC 9110 §15

  https://www.rfc-editor.org/rfc/rfc9110#name-status-codes
