Businessman with head in hands at desk, © John Giustina, Getty Images

Now you’ve done it.

You lost your temper at the wrong time with the wrong colleague. You sent an email you shouldn’t have, and now your entire address book has received information that was meant to be classified. You sent out a passive aggressive tweet complaining about your employer, but it wasn’t passive enough to miss your boss’s notice. Alexander Pope once said “to err is human; to forgive, divine,” but he might have been referring to lesser offenses – the type of boo boo you just made is so professionally damaging that it could cost you your job and cause your career to go careening into the wall.

Or so it seems. With patience and creativity it’s possible to rehabilitate yourself from even the worst career gaffes. “There are few goofs from which humans cannot recover,” says Jenny Foss, founder of the career blog JobJenny.com and author of "Ridiculously Awesome Resume Kit." "The real question is – will your employer allow you the recovery after a goof?"

Possibly, if you take these steps.

Diagnose. Do you believe in signs? Because your slip-up and the subsequent fallout could be a fluke, but it could also be indicative of a larger problem. Sarah Vermunt, founder of Careergasm, a Toronto-based career coaching company with a mission to help people create feel-good work, suggests soul searching. “Sometimes people need to look past the surface of a failure to realize their self-sabotage is perhaps a subconscious act to save some essential part of the self,” she says. Dig deeper and you might discover you were negligent because you’re overworked or not stimulated by your job responsibilities. Knowing the root of your mistake will also help you plan your next steps.

Fess up and apologize. A true career meltdown impacts you, your colleagues and clients, so apologize to all whom are affected by what you’ve done. “If you flub it up, you will need to mobilize swiftly on a plan to openly disclose the situation,” Foss says. “You need to take full responsibility for what just happened and offer up a solution on how you’ll fix the problem or move forward from there.” If you want to keep your job and you fear you’re on the brink of losing it, Hallie Crawford, certified career coach and founder of the Atlanta-based coaching firm Create Your Career Path, suggests you ask your supervisor for a six-month grace period to prove yourself.

Keep communication flowing. Give your manager regular progress reports on how you’re repairing the professional damage you’ve done. “People are hired and fired based on their soft skills,” Crawford says. “As the cliché goes, everyone makes mistakes. The way you handle them demonstrates character.”

Just don’t play the victim when keeping your boss in the loop. Foss says it’s important you quit moping about the past. “Show through your actions that you mean it about the recovery, that you’re worth keeping around and that you aren’t going to fall off an emotional cliff as a result of the error,” she says.

Wait and watch. Instead of firing you, your boss might put you on probation, which would be good. This is a time when your colleagues will evaluate how suitable it is for you to continue in the position, but you should evaluate that for yourself as well. “If it’s obvious that your boss and peers no longer trust you, then it’s best to quit,” Crawford says. “Or if your co-workers and boss give you a chance and trust you, but your reputation has been ruined with your clients, then it’s probably worth moving on.”

Remain positive. Learn how to spin this snafu and what you’ve learned positively. “The professionals who go the distance are those who can own up to their mistakes, correct them, move on and deliver great value to the companies they serve,” Foss says.

Note that the bigger of a career setback you’ve had, the easier it will be for future professional contacts – like, hiring managers – to uncover it. Take initiative and be forthcoming about past mistakes, but keep it short. “Practice your party line so that you don’t ramble, because rambling tends to get us in trouble,” Crawford says. “Follow a script of ‘This is the error I made, this is how I handled the mistake and the aftermath, this is what I learned and this is what I do differently today.’”

Also keep these tips in mind to ward off major career mistakes​ in the future:

1. Take care of yourself. Untended stress and anger metastasizes, and you could snap and say or do something you shouldn’t at work. Find productive and positive ways to release negative energy – think exercise, volunteering and more sleep – so that burnout doesn’t impact your career.

2. Know who your friends are. You’ve heard the phrase, “Loose lips sink ships?” It’s applicable to your career.​ “Remember when you’re at work that you’re always on professional, not personal, time,” Crawford says. “Even if you have great camaraderie with your co-workers, they’re still your co-workers and that dictates how you interact with them, especially while at work.”

3. Remember someone’s always watching. ​Exposure is the price you pay for social media’s convenience and accessibility, and you’re susceptible anytime you’re in the vicinity of a smartphone – yours or anyone else’s – to incriminate yourself.​ Before sending that tweet or telling that off-color joke, keep in mind “you’re always ‘on,’” Crawford explains. “Even if you’re not using social media, someone beside you could be recording or tweeting what you’re doing, so err on the side of being conservative and cautious.”

That doesn’t mean you can’t ever loosen up or have a sense of humor – Vermunt stresses the importance of understanding the culture of your industry and clients. “For example, I’m a career and entrepreneur coach, but I don’t work in a corporate environment,” she says. “I work with a lot of people trying to escape the corporate environment. When I write, I might use swear words and teen slang, because I know and understand the culture I work within. But I wouldn’t try that language and that approach if I worked in a different culture.”

Click here to become a fan of MSN Money on Facebook

More from U.S.News & World Report