{"action":"created","issue":{"url":"https://api.github.com/repos/middleman/middleman/issues/1436","labels_url":"https://api.github.com/repos/middleman/middleman/issues/1436/labels{/name}","comments_url":"https://api.github.com/repos/middleman/middleman/issues/1436/comments","events_url":"https://api.github.com/repos/middleman/middleman/issues/1436/events","html_url":"https://github.com/middleman/middleman/issues/1436","id":55707572,"number":1436,"title":"Feature idea: Custom 404 pages in a live Middleman server","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-28T02:55:40Z","updated_at":"2015-09-12T23:08:32Z","closed_at":"2015-01-28T03:43:33Z","body":"Hello! Middleman is excellent. We are running Middleman and noticed that the 404 page is hardcoded in `Middleman::CoreExtensions::Request`. I would love it if there were a configurable way to use a custom 404 page.\r\n\r\nThis is a little bit odd because (due to our custom setup around auto-publishing future-dated posts, which I swear makes sense), we aren't compiling the app before serving it, we are just running the app directly with caching in front of it. This means that the standard Rack-based 404 handling in e.g. https://github.com/indirect/middleman-heroku-static-app/blob/master/config.ru isn't viable.\r\n\r\nSo: What do you think about adding support for an optional custom 404 page?\r\n\r\nIt might look like this:\r\n\r\n```ruby\r\npage \"/404.html\", layout: false\r\n# :404 is not a valid symbol, unfortunately\r\nset :not_found_page, \"404.html\"\r\n```"},"comment":{"url":"https://api.github.com/repos/middleman/middleman/issues/comments/139828129","html_url":"https://github.com/middleman/middleman/issues/1436#issuecomment-139828129","issue_url":"https://api.github.com/repos/middleman/middleman/issues/1436","id":139828129,"user":{"login":"tdreyno","id":233,"avatar_url":"https://avatars.githubusercontent.com/u/233?v=3","gravatar_id":"","url":"https://api.github.com/users/tdreyno","html_url":"https://github.com/tdreyno","followers_url":"https://api.github.com/users/tdreyno/followers","following_url":"https://api.github.com/users/tdreyno/following{/other_user}","gists_url":"https://api.github.com/users/tdreyno/gists{/gist_id}","starred_url":"https://api.github.com/users/tdreyno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdreyno/subscriptions","organizations_url":"https://api.github.com/users/tdreyno/orgs","repos_url":"https://api.github.com/users/tdreyno/repos","events_url":"https://api.github.com/users/tdreyno/events{/privacy}","received_events_url":"https://api.github.com/users/tdreyno/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T23:08:32Z","updated_at":"2015-09-12T23:08:32Z","body":"You could do some nasty ruby monkey patching, but otherwise that method isn't supposed to be public. What's the goal of having 404 pages in dev mode?"}}