Fixed default behavior for notFound, added default JSON output for other statuses.
closes #1620