$statusCode is a string

Since the $statusCode is a string, the condition always fails.