{"action":"created","issue":{"url":"https://api.github.com/repos/haskell-servant/servant-server/issues/23","labels_url":"https://api.github.com/repos/haskell-servant/servant-server/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/haskell-servant/servant-server/issues/23/comments","events_url":"https://api.github.com/repos/haskell-servant/servant-server/issues/23/events","html_url":"https://github.com/haskell-servant/servant-server/issues/23","id":55994640,"number":23,"title":"Generalize RouteMismatch","user":{"login":"jkarni","id":1657498,"avatar_url":"https://avatars.githubusercontent.com/u/1657498?v=3","gravatar_id":"","url":"https://api.github.com/users/jkarni","html_url":"https://github.com/jkarni","followers_url":"https://api.github.com/users/jkarni/followers","following_url":"https://api.github.com/users/jkarni/following{/other_user}","gists_url":"https://api.github.com/users/jkarni/gists{/gist_id}","starred_url":"https://api.github.com/users/jkarni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkarni/subscriptions","organizations_url":"https://api.github.com/users/jkarni/orgs","repos_url":"https://api.github.com/users/jkarni/repos","events_url":"https://api.github.com/users/jkarni/events{/privacy}","received_events_url":"https://api.github.com/users/jkarni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell-servant/servant-server/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-30T04:52:12Z","updated_at":"2015-01-30T23:32:08Z","closed_at":null,"body":"https://github.com/haskell-servant/servant-server/pull/22 adds the ability to have some overriding custom errors in `RouteMismatch`. It'd be nice to generalize this to a more flexible priority system, as discussed in the PR."},"comment":{"url":"https://api.github.com/repos/haskell-servant/servant-server/issues/comments/72289170","html_url":"https://github.com/haskell-servant/servant-server/issues/23#issuecomment-72289170","issue_url":"https://api.github.com/repos/haskell-servant/servant-server/issues/23","id":72289170,"user":{"login":"alpmestan","id":119323,"avatar_url":"https://avatars.githubusercontent.com/u/119323?v=3","gravatar_id":"","url":"https://api.github.com/users/alpmestan","html_url":"https://github.com/alpmestan","followers_url":"https://api.github.com/users/alpmestan/followers","following_url":"https://api.github.com/users/alpmestan/following{/other_user}","gists_url":"https://api.github.com/users/alpmestan/gists{/gist_id}","starred_url":"https://api.github.com/users/alpmestan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpmestan/subscriptions","organizations_url":"https://api.github.com/users/alpmestan/orgs","repos_url":"https://api.github.com/users/alpmestan/repos","events_url":"https://api.github.com/users/alpmestan/events{/privacy}","received_events_url":"https://api.github.com/users/alpmestan/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T23:32:08Z","updated_at":"2015-01-30T23:32:08Z","body":"The thing is, we have to be able to \"compare\" them. Some mismatches mean \"stop right here, i don't care about whether other endpoints could match\", whereas some aren't as strong and the routing can actually lead to a successful match later on with another endpoint, despite the fact than an earlier endpoint returned a mismatch."}}