Handling status in API response