Skip to Main Content

ORDS, SODA & JSON in the Database

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!

Custom Reason Phrase not included in HTTP response

ifernandOct 21 2019 — edited Oct 22 2019

Hi.

We are using OWA_UTIL.status_line to set a "Reason Phrase" in our ORDS services. But "Reason Phrase" is not appearing in the response.

We are using code like this to set "reason phrase":

OWA_UTIL.status_line(nstatus => 403,

creason       => 'Reason Phrase set from OWA_UTIL.status_line',

bclose_header => FALSE);

But when we get the response from the service, reason phrase is standard one:

< HTTP/1.1 403 Forbidden

< Server: Apache-Coyote/1.1

< ETag: "i4DDo/vSMZ4/eOobbpvx+DZMAs32LRTXVjnTpUihtOmRXKTwkBot+P3x5zDJ9IORcBssoUKmdL+xHIF7zBuyaA=="

< Transfer-Encoding: chunked

< Date: Mon, 21 Oct 2019 10:19:16 GMT

How can we get a cutomized "Reason phrase" returned by our services?

We are using ORDS 17.4.

Regards.

Comments
Post Details
Added on Oct 21 2019
8 comments
679 views