{"action":"created","issue":{"url":"https://api.github.com/repos/pheymann/typedapi/issues/36","repository_url":"https://api.github.com/repos/pheymann/typedapi","labels_url":"https://api.github.com/repos/pheymann/typedapi/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/pheymann/typedapi/issues/36/comments","events_url":"https://api.github.com/repos/pheymann/typedapi/issues/36/events","html_url":"https://github.com/pheymann/typedapi/issues/36","id":353346688,"node_id":"MDU6SXNzdWUzNTMzNDY2ODg=","number":36,"title":"Error handling","user":{"login":"wookievx","id":11619599,"node_id":"MDQ6VXNlcjExNjE5NTk5","avatar_url":"https://avatars2.githubusercontent.com/u/11619599?v=4","gravatar_id":"","url":"https://api.github.com/users/wookievx","html_url":"https://github.com/wookievx","followers_url":"https://api.github.com/users/wookievx/followers","following_url":"https://api.github.com/users/wookievx/following{/other_user}","gists_url":"https://api.github.com/users/wookievx/gists{/gist_id}","starred_url":"https://api.github.com/users/wookievx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wookievx/subscriptions","organizations_url":"https://api.github.com/users/wookievx/orgs","repos_url":"https://api.github.com/users/wookievx/repos","events_url":"https://api.github.com/users/wookievx/events{/privacy}","received_events_url":"https://api.github.com/users/wookievx/received_events","type":"User","site_admin":false},"labels":[{"id":850460866,"node_id":"MDU6TGFiZWw4NTA0NjA4NjY=","url":"https://api.github.com/repos/pheymann/typedapi/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":858205988,"node_id":"MDU6TGFiZWw4NTgyMDU5ODg=","url":"https://api.github.com/repos/pheymann/typedapi/labels/in%20progress","name":"in progress","color":"56d129","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-23T11:52:58Z","updated_at":"2018-08-24T11:27:56Z","closed_at":"2018-08-24T11:27:56Z","author_association":"NONE","body":"# Motivation\r\nAt least for now there is no way of providing your own methods of handling errors, so any error in your service end up being reported as internal server error to the client.  This can be addressed in a project by reimplementing integration with your http-framework of choice. But i think that providing facility to enable custom error handling is quite important. There are certain kinds of failures that are not internal server errors, or implementation issues like resource with given id missing, that should return proper status code and error information to the caller.\r\n# Proposal\r\nSignature of  `Get[MT <: MediaType, A]` and other methods respectively could be changed to something like `Get[MT <: MediaType, E, A]`. Then specific http-framework integrations would have to care about exposing facility to handle errors of type E in a specific way. "},"comment":{"url":"https://api.github.com/repos/pheymann/typedapi/issues/comments/415731773","html_url":"https://github.com/pheymann/typedapi/issues/36#issuecomment-415731773","issue_url":"https://api.github.com/repos/pheymann/typedapi/issues/36","id":415731773,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTczMTc3Mw==","user":{"login":"pheymann","id":15048439,"node_id":"MDQ6VXNlcjE1MDQ4NDM5","avatar_url":"https://avatars0.githubusercontent.com/u/15048439?v=4","gravatar_id":"","url":"https://api.github.com/users/pheymann","html_url":"https://github.com/pheymann","followers_url":"https://api.github.com/users/pheymann/followers","following_url":"https://api.github.com/users/pheymann/following{/other_user}","gists_url":"https://api.github.com/users/pheymann/gists{/gist_id}","starred_url":"https://api.github.com/users/pheymann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pheymann/subscriptions","organizations_url":"https://api.github.com/users/pheymann/orgs","repos_url":"https://api.github.com/users/pheymann/repos","events_url":"https://api.github.com/users/pheymann/events{/privacy}","received_events_url":"https://api.github.com/users/pheymann/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T11:27:56Z","updated_at":"2018-08-24T11:27:56Z","author_association":"OWNER","body":"0.2.0-RC2 including this change is on its way to Maven."}}
{"actor":{"display_login":"pheymann"}}