Looks like a grey rat snake. What kind of environment did you find it in? Copperheads always hang out in big heaps of trash/mulch/branches.

Go let it back outside, they're endangered and you need a license to keep them. Rat snakes are good to keep around the yard, they'll keep all the small rodents away.