2 Replies Latest reply on Sep 23, 2015 6:42 AM by evrm

    How to set custom HTTP status code




      recently I've installed ORDS 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


      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.