Added check if HTTP API is enabled.