Added an error controller for throwing mock errors