I went to autozone and am getting 2 codes PO400 and PO440?

any ideas on what these might be?

also if i reset the check engine light does anyone know how many miles it resets itself if i want to get an inspection. I was told that after i reset the light a inspection machine will know and wont pass me untill a certain amount of miles have gone by without the light.

thanks
adam