Here are the things to do with your mistakes specially in a working environment:
- Admit your mistake
- Present your boss with a plan to fix your mistake
- Don't blame with anyone else for your mistake
- Apologize for your mistake but don't beat yourself up
- Correct your mistake on your own time
Details of the steps can read via this link.