404 on attempt to list notebooks in nonexistant directory

Also some test simplification - a unified `assert_http_error` method.