Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
UTL_HTTP , 17 of 59
This procedure sets whether or not get_response
raises an exception when the Web server returns a status code that indicates an error--a status code in the 4xx or 5xx ranges. For example, when the requested URL is not found in the destination Web server, a 404 (document not found) response status code is returned. If the status code indicates an error--a 4xx or 5xx code--and this procedure is enabled, get_response
will raise the HTTP_CLIENT_ERROR
or HTTP_SERVER_ERROR
exception. If SET_RESPONSE_ERROR_CHECK
is set to FALSE
, get_response
will not raise an exception when the status code indicates an error. Response error check is turned off by default.
UTL_HTTP.set_response_error_check (enable IN BOOLEAN DEFAULT FALSE);
Table 78-19 shows the parameters for the SET_RESPONSE_ERROR_CHECK
procedure.
Parameter | Description |
---|---|
enable (IN) |
|
The get_response
function can raise other exceptions when SET_RESPONSE_ERROR_CHECK is set to FALSE
.
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|