Automation of the resource suffix name
Fix error message for error 500 html page
Debug middleware added