Defining dynamic routes; changing response status; enabling debug mode