{"action":"created","issue":{"url":"https://api.github.com/repos/gengo/grpc-gateway/issues/58","labels_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/58/comments","events_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/58/events","html_url":"https://github.com/gengo/grpc-gateway/issues/58","id":107890064,"number":58,"title":"Add HTTP error code, error status to responseStreamChunk Error","user":{"login":"mwitkow-io","id":9655971,"avatar_url":"https://avatars.githubusercontent.com/u/9655971?v=3","gravatar_id":"","url":"https://api.github.com/users/mwitkow-io","html_url":"https://github.com/mwitkow-io","followers_url":"https://api.github.com/users/mwitkow-io/followers","following_url":"https://api.github.com/users/mwitkow-io/following{/other_user}","gists_url":"https://api.github.com/users/mwitkow-io/gists{/gist_id}","starred_url":"https://api.github.com/users/mwitkow-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwitkow-io/subscriptions","organizations_url":"https://api.github.com/users/mwitkow-io/orgs","repos_url":"https://api.github.com/users/mwitkow-io/repos","events_url":"https://api.github.com/users/mwitkow-io/events{/privacy}","received_events_url":"https://api.github.com/users/mwitkow-io/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-23T10:24:45Z","updated_at":"2015-10-01T07:16:05Z","closed_at":"2015-10-01T07:16:05Z","body":"When using unitary-to-streaming requests, it is hard to reason about HTTP error codes based on a chunk that contains error: it only contains the text of the error response.\r\n\r\nInstead, it would be useful for the `error` field of a chunk to be structured:\r\n * `grpc_code` containing the code of the RPC error (to avoid the pain of extracting it from the error string)\r\n * `http_code` that is from `HTTPStatusFromCode` \r\n * `message` containing the current string of the error\r\n * `http_status` containing a textual representation of the `grpc_code` or `http_code`.\r\n"},"comment":{"url":"https://api.github.com/repos/gengo/grpc-gateway/issues/comments/144641123","html_url":"https://github.com/gengo/grpc-gateway/issues/58#issuecomment-144641123","issue_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/58","id":144641123,"user":{"login":"mwitkow-io","id":9655971,"avatar_url":"https://avatars.githubusercontent.com/u/9655971?v=3","gravatar_id":"","url":"https://api.github.com/users/mwitkow-io","html_url":"https://github.com/mwitkow-io","followers_url":"https://api.github.com/users/mwitkow-io/followers","following_url":"https://api.github.com/users/mwitkow-io/following{/other_user}","gists_url":"https://api.github.com/users/mwitkow-io/gists{/gist_id}","starred_url":"https://api.github.com/users/mwitkow-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwitkow-io/subscriptions","organizations_url":"https://api.github.com/users/mwitkow-io/orgs","repos_url":"https://api.github.com/users/mwitkow-io/repos","events_url":"https://api.github.com/users/mwitkow-io/events{/privacy}","received_events_url":"https://api.github.com/users/mwitkow-io/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T07:16:05Z","updated_at":"2015-10-01T07:16:05Z","body":"Yay, thanks @kdima!"}}