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!

How to set custom HTTP status code

evrmSep 21 2015 — edited Sep 23 2015

Hi,

recently I've installed ORDS 3.0.1.177.18.02 and migrated my REST Webservices based on Apex 4.2

In these REST Webservices I've used the pseudo HTTP headers X-APEX-STATUS-CODE, X-APEX-METHOD  and X-APEX-PATH

Unfortunately these won't work anymore in the migrated REST Webservices in the new ORDS 3.0.1.177.18.02.

How can I set, if possible, a custom HTTP status code?

It has to be set on a GET response.

The result of my REST pl/sql webservice is an error json object but with a custom http status code. Eg. 422.

regards,

Erik-jan

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2015
Added on Sep 21 2015
2 comments
2,532 views