Use toString() to print the error coming from the API request