NE_STATUS(3)
π NAME π
ne_status β the HTTP status structure, bestie. it's giving "what did the server even say back" energy β¨
this page is from the neon API reference (yes, neon, and yes, third section of the manual, 3) π
π SYNOPSIS π
#include <ne_utils.h>
typedef struct {
int major_version;
int minor_version;
int code;
int klass;
char *reason_phrase;
} ne_status;
π¦ DESCRIPTION π¦
okay so ne_status is the type that represents an HTTP response status β the thing you get back in response messages telling you the result of a request. literally the receipts of your HTTP call π
here's the field-by-field vibe check:
major_versionandminor_versionβ these two give the protocol version supported by the server that's issuing the response π«Άcodeβ the status code of the result, and no cap it lies between100and599inclusive β¨klassβ the class, which equals the most significant digit of the status πreason_phraseβ a human-readable string describing the status. it's purely informational (and optional), so any interpretation of the response status must be done using theklassand/orcodefields β not this one, bestie π
πΈ the five classes of response status code
there are five classes of response status code defined for HTTP/1.1 (see RFC 9110 Β§15 β link down in REFERENCES, iykyk) π₯
1xxβ informational response2xxβ success: the operation was successful π3xxβ redirection4xxβ client error: the request made was incorrect in some manner π5xxβ server error π
π§ NOTES π§
so why is it called klass and not class? not me about to explain β it's because the header needs to be usable from a C++ program, and in C++ class is a reserved word. so klass it is, periodt π
β SEE ALSO β
ne_get_status(3)β go read that one next, bestie π«Ά
π COPYRIGHT π
Copyright Β© 2001-2026 Joe Orton π
π REFERENCES π
okay that's the whole page, you ate that π
this was ne_status from neon, dated 03/20/2026 β see you in the next man page, bestie, mwah ππ
π¦ where this page comes from
- arch rolling: neon 0.37.1-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms