Error Handling
Use the Error Handling section to define custom logic for extracting and displaying meaningful messages from failed HTTP responses.
Purpose
Default Error Handling Behavior
// Add custom transformation here
if (http.code >= 200 && http.code < 400) {
// No error if success code
return null;
} else if (data['message']) {
// Display error message if available in response
return data['message'];
} else {
// Generic error if no message found
return true;
}
Explanation:
Custom Error Handling Examples
🛠️ Recommended Template: Combine Custom + Default Logic
Last updated
Was this helpful?