I have a 1998 civic ex with P0505
IAC idle air control valve issue. Try cleaning it and put new gasket on. If not you may have to buy new one with age of your vehicle.
Search Honda Civic Coupe Questions
Honda Civic Coupe Experts