5
Views
8
Comments
Customizing status code popup
Question

Hi team,

I have created this login functionality using the external API, when ever i enter the wrong credentials I am getting the above 401 popup, So now I want to customize the popup with my error message??could you help me in customizing the popup please??

Rank: #89

Hi Ritika,

use exception handeling for it.

Where you are using API handel with exception and provide your feedback message in it.


Hope this will help you.

Regards

Rahul Sahu

Rank: #89

Hi Ritika,

Where you use login api like login button you need to handel

like below image

for Reactive Web


For Traditional App

You find Exception in widget here 


Regards

Rahul Sahu



Rank: #89

Hi Ritika,

can you share some code of images where you tried this.it will help to understand.


Regards

Rahul Sahu

mvp_badge
MVP
Rank: #128

Hi,


are you talking about rest API response code? If yes - we can modify the status code using below action,


Implement "OnAfterRespone" action of an API and modify the status code


https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Consume_REST_APIs/Handling_REST_Errors#:~:text=When%20consuming%20a%20REST%20API,by%20implementing%20your%20own%20logic.


and also you can customize exception message based on you logic