ResourceError ResourceError::httpError(SoupMessage* message, GError* error, SoupRequest* request) { if (!message || !SOUP_STATUS_IS_TRANSPORT_ERROR(message->status_code)) return genericIOError(error, request); return ResourceError(g_quark_to_string(SOUP_HTTP_ERROR), message->status_code, failingURI(request), String::fromUTF8(message->reason_phrase)); }
ResourceError ResourceError::httpError(SoupMessage* message, GError* error, SoupRequest* request) { if (message && SOUP_STATUS_IS_TRANSPORT_ERROR(message->status_code)) return transportError(request, message->status_code, String::fromUTF8(message->reason_phrase)); else return genericIOError(error, request); }