How do you usually handle 4xx and 5xx errors from REST APIs in Mendix — without breaking the user experience?rading UX or app stability?

0
In production-grade Mendix apps, how do you typically handle scenarios like 404s (missing resources) or 500s (server-side failures) during REST calls?Are you leveraging custom error flows with structured exception handling, centralized logging, retries, or fallback data models?
asked
1 answers
0

Hi Tiago,

Typically, you can use the status code attribute to check whether the call was successful or not. This attribute is available in the "httpresponse" object.

If the error isn't related to the API response but rather to the API connection, you can use error handling to prevent the application/microflow from crashing.

A good way to identify the cause of the error is by using logs during the microflow process and error handling.

Regarding fallback data models: There's no general module that handles all failures; however, you can create something custom for your application.

 

Best Regards, 

Ricardo Pereira

answered