Prosecutors have absolute immunity which is incredibly difficult to overcome. Even falsifying evidence doesn't seem to do it unless there's a "pattern of abuse" which is practically impossible to prove.
http://www.scotuswiki.com/index.php?title=Pottawattamie_Coun...
Prosecutors do not have absolute immunity when it comes to crimes that are only possible with their office.
If they do something bad in a case, they have absolute immunity, but if they break the law under the guise of law enforcement, they don't. Same as cops.
http://en.wikipedia.org/wiki/Mike_Nifong
Granted, the behavior does have to be pretty egregious, but at least these people aren't (always) above the law.