E-IB: How to Set Content-Type and Return Status Code In REST Web Service Fault Message (Doc ID 2026747.1)

Last updated on SEPTEMBER 15, 2017

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.55 and later
Information in this document applies to any platform.

Goal

A customer developed a custom PeopleSoft REST and wants to have the Fault message return a content type of "application/json" instead of "text/plain".

Is it possible to set it up so that the content type of the Fault message is `application/json` instead of text/plain so it can be consumed by the client?
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms