Lines Matching defs:status
35 ipp_status_t /* O - Request status - @code IPP_OK@ on success. */
55 http_status_t status; /* HTTP status of request */
107 status = cupsSendRequest(http, request, "/", ippLength(request));
109 DEBUG_puts("2cupsGetDevices: Waiting for response status...");
110 while (status == HTTP_STATUS_CONTINUE)
111 status = httpUpdate(http);
113 if (status != HTTP_STATUS_OK)
117 if (status == HTTP_STATUS_UNAUTHORIZED)
129 status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED;
135 else if (status == HTTP_STATUS_UPGRADE_REQUIRED)
149 while (status == HTTP_STATUS_UNAUTHORIZED ||
150 status == HTTP_STATUS_UPGRADE_REQUIRED);
152 DEBUG_printf(("2cupsGetDevices: status=%d", status));
156 if (status != HTTP_STATUS_OK)
158 _cupsSetHTTPError(status);
245 * Set the IPP status and return...
251 if (status == HTTP_STATUS_ERROR)
255 attr = ippFindAttribute(response, "status-message", IPP_TAG_TEXT);
257 DEBUG_printf(("cupsGetDevices: status-code=%s, status-message=\"%s\"",
258 ippErrorString(response->request.status.status_code),
261 _cupsSetError(response->request.status.status_code,
263 ippErrorString(response->request.status.status_code), 0);