I think Sparky is right. The snake looks to be related to either the rat snake or the fish snake, although most fish snakes flatten their necks when they are threatened. It doesn't look like this one done that when it faced the cat. They can and will bite, but both are non-poisonous and harmless. If left alone they would scurry away from anyone.