You are not testing/checking the green error block. If there is an error in the API you wouldn’t know without checking the error block first before attempting to use the response block.
Refer to the following tutorial for better understanding of API error handling.