Take responsibility. Acknowledge how your actions might have affected your boss. Express how you'll grow from it and then, most importantly, how you'll fix it. After the dust has settled, what will be remembered is not what went wrong, but how you behaved while the issue was being resolved. Stay cool, be confident, and keep on smiling. You might just see your status in your boss' eyes being bettered by the ordeal.