Mary Cody is not listed in the 1840 census for Ky. There is a Michael Cody listed.Since Joseph's middle initial is "M", this could be the father.Only heads of households were listed in the 1840 census.
From the 1860 census - Name:Jo Cody (NOTE SPELLING - Joseph) Age in 1860:33 Occupation:Hotel proprietor Birthplace:Kentucky Home in 1860:Not Stated, Meade, Kentucky
Mary - 29, wife, occupation - land lady, b. Ky Susan Ellen - 9, b. Ky William F. - 7, b. Ky James Carroll - 5, b. Ky john Henry - 2, b. Ky James Cody - 29, brother, farmer, b. Ky Mary Cody - 60, mother, b. Maryland
From the 1870 census - Name:James Cody Estimated Birth Year: abt 1830 Age in 1870: 40 Birthplace:Kentucky Home in 1870:Lewisport, Hancock, Kentucky
Mary - 70, mother, b. Maryland Mary - 40, wife, b. Ky xxx - son, 17, b. Ky Carol - 15, son, b. Ky joseph - 12, b. Ky John - 10, b. Ky Charles - 6, b. Ky Paul - 3, b. Ky
With the mother living with James, one can assume that Joseph died at and early age.
Use this link to search the 1880 census - 1880 US Census – The Mormon Church Files LDS (Free, indexed and searchable) Click on the SEARCH tab at top of page Look for US Census on the left side of screen http://www.familysearch.org/Eng/default.asphttp://www.familysearch.org/Eng/default.asp