Lines Matching defs:code
39 /* Stateful HTTP request code, supporting blocking and non-blocking I/O */
399 * We need to obtain the status code and (optional) informational message.
400 * Return any received HTTP response status code, or 0 on fatal error.
406 char *code, *reason, *end;
414 for (code = line; *code != '\0' && !ossl_isspace(*code); code++)
416 if (*code == '\0')
419 /* Skip past whitespace to start of response code */
420 while (*code != '\0' && ossl_isspace(*code))
421 code++;
422 if (*code == '\0')
425 /* Find end of response code: first whitespace after start of code */
426 for (reason = code; *reason != '\0' && !ossl_isspace(*reason); reason++)
432 /* Set end of response code and start of message */
435 /* Attempt to parse numeric code */
436 retcode = strtoul(code, &end, 10);
465 ERR_raise_data(ERR_LIB_HTTP, err, "code=%s", code);
467 ERR_raise_data(ERR_LIB_HTTP, err, "code=%s, reason=%s", code,
757 /* http status code indicated redirect but there was no Location */
1393 /* RFC 7231 4.3.6: any 2xx status code is valid */