I make rest request using APEX_WEB_SERVICE.MAKE_REST_REQUEST
function, when I get unsuccessful response status code (for example 400, 405), I didn't get body, but Oracle Apex Debug Message Data displaying:
HTTP response 405 - <message>
How I can get this message? I try to use apex_web_service.g_headers
but it doesn't give me it.
Photo from Apex Debug, where is green border - my custom error, where is red border - Apex. And I think this data from HTTP header or something like that. APEX_WEB_SERVICE.MAKE_REST_REQUEST
function response in this case is empty.
EDIT: solved, APEX_WEB_SERVICE.G_REASON_PHRASE.