| 53 | return engine::io::json::stringify_string(value); |
| 54 | } |
| 55 | |
| 56 | const 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 | } |
no outgoing calls
no test coverage detected