Color does not exist

I am attaching images. I ma getting the error that color does not exist and one error is in httpHandler. How should I debug this error?

You need to define color as local to the handler function shown in the image, or global, ie.

color <- {}

then declare your keys: <- 0; etc