MCPcopy Create free account
hub / github.com/FastLED/FastLED / status_text

Function status_text

src/fl/stl/asio/http/server.cpp.hpp:128–136  ·  view source on GitHub ↗

Helper: Get HTTP status text

Source from the content-addressed store, hash-verified

126
127// Helper: Get HTTP status text
128const char* status_text(int code) {
129 switch (code) {
130 case 200: return "OK";
131 case 400: return "Bad Request";
132 case 404: return "Not Found";
133 case 500: return "Internal Server Error";
134 default: return "Unknown";
135 }
136}
137
138// Helper: Set socket to non-blocking mode
139bool set_nonblocking(int fd) {

Callers 1

to_stringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected