Аннотация:In this correspondence, we study the functional codes C 2 (X) defined on projective varieties X, in the case where X sub P 3 (F q ) is a 1-degenerate quadric or a nondegenerate quadric (hyperbolic or elliptic). We find the minimum distance of these codes, the second weight, and the third weight. We also show the geometrical structure of the first weight and second weight codewords. One result states that the codes C 2 (X) defined on the elliptic quadrics are good codes according to the table of A. E. Brouwer.