Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Rest API - Error status

edited May 3, 2019 11:35AM in Integration 2 comments

Summary

How to get error status from API

Content

Hi All,

I have created REST apis  in OIC to insert and update records in Oracle DB. I have slected POST and PATCH methods in APIs. Sometimes when an error occurs REST api doesn't return an error code, but always return 202 accepted. If we see the OIC logs, exceptions will be present. We are invoking these APIs from VBCS and how can we show an error message on the screen when error occurs as the API always returns 202 regardless of success or failure

Regards,

Rekha

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!