Improved error handling on JSON response and FIX on API request (lack of HTTP header)