MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / status_text

Function status_text

app/server/http.cpp:55–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 return engine::io::json::stringify_string(value);
54}
55
56const char * status_text(int status) noexcept {
57 switch (status) {
58 case 200:
59 return "OK";
60 case 400:
61 return "Bad Request";
62 case 404:
63 return "Not Found";
64 case 405:
65 return "Method Not Allowed";
66 case 500:
67 return "Internal Server Error";
68 case 503:
69 return "Service Unavailable";
70 default:
71 return "Error";
72 }
73}

Callers 1

serialize_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected