Rest API - Rate Limiting and Throttling
Consider this pseudocode for a REST API endpoint:
What will the API return if fetchAllData() throws an error?
try {
data = fetchAllData();
return { data: data, status: 200 };
} catch (error) {
fallback = fetchPartialData();
return { data: fallback, status: 206 };
}What will the API return if fetchAllData() throws an error?
