/* Returns a textual description of the method or response code.  */
static const char* msg_code_string(uint8_t c)
/* Returns a textual description of the method or response code.  */
static const char* msg_code_string(uint8_t c)
{ "0.00", "GET", "POST", "PUT", "DELETE", "PATCH" };
  static char buf[5];
  if (c < sizeof(methods)/sizeof(char *)) {
    return methods[c];
  } else {
    snprintf(buf, sizeof(buf), "%u.%02u", c >> 5, c & 0x1f);
    return buf;
  }
}