move Exception on other directory

Change default response code for HttpException to 500
read previous commit