check engine lite came on auto zone checked and found codesp0402 and p0340 on 2000 Ford Ranger

my truck is running allright but i do hear a sound when i first start it up,like something is leaking air but it goes away within 2-3 minutes

Asked by for the 2000 Ford Ranger