Add ability customize content type and status code from routes settings.
Fix type for JavaScript in templates, after adding comment return proper status code.