Code 27 indicates a passenger's side airbag "on-off" light circuit fault. It could be for open or short in circuit. It could be caused by a burned out light bulb. check to see if the bulb operates as it should, it could be as easy as the on-off bulb being out.
RepairPal Certified shops can diagnose and repair your 1999 Ford Ranger. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.