Customizing status code popup

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??

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

Rahul Sahu wrote:

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

 how to add that exception feedback message rahul.??


 

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



Rahul Sahu wrote:

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



 Hai rahul,

We already tried the same way although 401 is displaying not our exception message

 

rithika gujjula wrote:

Rahul Sahu wrote:

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

 how to add that exception feedback message rahul.??


 

 Hello Rithika,

If you are developing app using traditional web template, just search feedback in search box of top right corner, like below screenshot and drag and drop feedback_Message widget to exception handler flow.

Do not forget to set Messagetext ="Your Message" and MessageType as per message.

For Reactive web development, just search Message widget in widget bar, do same for this.

 

Sanjay Kumar Sahu wrote:

rithika gujjula wrote:

Rahul Sahu wrote:

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

 how to add that exception feedback message rahul.??


 

 Hello Rithika,

If you are developing app using traditional web template, just search feedback in search box of top right corner, like below screenshot and drag and drop feedback_Message widget to exception handler flow.

Do not forget to set Messagetext ="Your Message" and MessageType as per message.

For Reactive web development, just search Message widget in widget bar, do same for this.

 

 you shall delete system's default ExceptionFeedbackMessage as you are using your own feedback msg.

 

Hi Ritika,

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


Regards

Rahul Sahu

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