My Oracle Support Banner

REST Integration - How To Return HTTP Status 4xx Or 5xx And Custom JSON Payload? (Doc ID 2705007.1)

Last updated on AUGUST 27, 2020

Applies to:

Oracle Integration-OIC - Version 18.2.5 and later
Information in this document applies to any platform.

Goal

When an error happens, the aim is to return a 4xx or 5xx status code, but also return a custom JSON payload instead of the default APIInvocationError.

On error this can be sent back, and the HTTP status code set to 4xx or 5xx:

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.