updates error controller to use proper status codes rather than older int pattern. closes #46