VirtualBox

Changeset 104308 in vbox


Ignore:
Timestamp:
Apr 12, 2024 10:04:21 AM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162785
Message:

IPRT/http-curl: Also handle the 501 HTTP status code. Required for testing unsupported stuff in the testcases. bugref:9437

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/err.h

    r100772 r104308  
    12041204/** Unexpected cURL error configure the proxy. */
    12051205#define VERR_HTTP_CURL_PROXY_CONFIG             (-897)
     1206/** The server does not support the requested function. */
     1207#define VERR_HTTP_NOT_SUPPORTED                 (-898)
    12061208/** Generic CURL error. */
    12071209#define VERR_HTTP_CURL_ERROR                    (-899)
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r102916 r104308  
    28342834                if (!puHttpStatus)
    28352835                    rc = VERR_HTTP_NOT_FOUND;
     2836                break;
     2837            case 501:
     2838                /* Requested function not supported */
     2839                if (!puHttpStatus)
     2840                    rc = VERR_HTTP_NOT_SUPPORTED;
    28362841                break;
    28372842        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette