Check for existence of response's statusCode to prevent exceptions