Api rewrite error to Api\IndexController errorAction() with debug info