Skip to Main Content

Integration

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Returning required apache error statuses with mod_plsql

JonathanWMar 23 2012
Hi,

We are using Oracle Application Server 11g and are developing web applications using the pl/sql web toolkit via mod_plsql.

We've found a situation where we want to return an apache 410 error code to the client so we used the following code in our package:

OWA_UTIL.status_line (410, '', FALSE);

to set the 410 error code in the http header and return only that to the client requesting the page.

What we've found though is that the 410 code is being translated to a 404 error at some point in the process.

It doesn't do this for all statuses, if I set the value to 401 or 503 for example those codes are returned to the client correctly, it only seems to be affecting certain status codes.

I've looked in the httpd.conf file and set up a specific ErrorDocument entry for the 410 code but this didn't make any difference. Can anybody think of a reason why the error 410 is being changed to a 404 error?

Thanks,

Jonathan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2012
Added on Mar 23 2012
0 comments
108 views