{"action":"opened","issue":{"url":"https://api.github.com/repos/rooftopcms/rooftop-cms/issues/15","labels_url":"https://api.github.com/repos/rooftopcms/rooftop-cms/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/rooftopcms/rooftop-cms/issues/15/comments","events_url":"https://api.github.com/repos/rooftopcms/rooftop-cms/issues/15/events","html_url":"https://github.com/rooftopcms/rooftop-cms/issues/15","id":121702843,"number":15,"title":"Call to missing post / page returns error instead of 404","user":{"login":"edtjones","id":4377783,"avatar_url":"https://avatars.githubusercontent.com/u/4377783?v=3","gravatar_id":"","url":"https://api.github.com/users/edtjones","html_url":"https://github.com/edtjones","followers_url":"https://api.github.com/users/edtjones/followers","following_url":"https://api.github.com/users/edtjones/following{/other_user}","gists_url":"https://api.github.com/users/edtjones/gists{/gist_id}","starred_url":"https://api.github.com/users/edtjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edtjones/subscriptions","organizations_url":"https://api.github.com/users/edtjones/orgs","repos_url":"https://api.github.com/users/edtjones/repos","events_url":"https://api.github.com/users/edtjones/events{/privacy}","received_events_url":"https://api.github.com/users/edtjones/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rooftopcms/rooftop-cms/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"foxpaul","id":218674,"avatar_url":"https://avatars.githubusercontent.com/u/218674?v=3","gravatar_id":"","url":"https://api.github.com/users/foxpaul","html_url":"https://github.com/foxpaul","followers_url":"https://api.github.com/users/foxpaul/followers","following_url":"https://api.github.com/users/foxpaul/following{/other_user}","gists_url":"https://api.github.com/users/foxpaul/gists{/gist_id}","starred_url":"https://api.github.com/users/foxpaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foxpaul/subscriptions","organizations_url":"https://api.github.com/users/foxpaul/orgs","repos_url":"https://api.github.com/users/foxpaul/repos","events_url":"https://api.github.com/users/foxpaul/events{/privacy}","received_events_url":"https://api.github.com/users/foxpaul/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-12-11T12:51:57Z","updated_at":"2015-12-11T12:51:57Z","closed_at":null,"body":"A call to e.g. /wp-json/wp/v2/posts/123456 where post 123456 doesn't exist returns an error:\r\n\r\n```\r\nNotice: Undefined property: stdClass::$show_in_rest in /srv/www/rooftop-cms/public/web/app/mu-plugins/rest-api/lib/endpoints/class-wp-rest-posts-controller.php on line 858\r\n```\r\n\r\nIt should just return a 404 instead."}}