A Clay County man is headed to federal prison after getting caught with a loaded gun during a traffic stop.