new shortcut function "notFound";
fix statusCode for undefined types;
limit and format stack trace to 4 lines