Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How I can get HTTP response error message?

Edgar SiniavskijSep 7 2021 — edited Sep 7 2021

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.
anth.jpgPhoto 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.

Comments
Post Details
Added on Sep 7 2021
0 comments
598 views