{"action":"opened","issue":{"url":"https://api.github.com/repos/puniverse/comsat/issues/80","repository_url":"https://api.github.com/repos/puniverse/comsat","labels_url":"https://api.github.com/repos/puniverse/comsat/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/puniverse/comsat/issues/80/comments","events_url":"https://api.github.com/repos/puniverse/comsat/issues/80/events","html_url":"https://github.com/puniverse/comsat/issues/80","id":183359057,"number":80,"title":"HttpResponse.error missing body","user":{"login":"safar","id":2071358,"avatar_url":"https://avatars.githubusercontent.com/u/2071358?v=3","gravatar_id":"","url":"https://api.github.com/users/safar","html_url":"https://github.com/safar","followers_url":"https://api.github.com/users/safar/followers","following_url":"https://api.github.com/users/safar/following{/other_user}","gists_url":"https://api.github.com/users/safar/gists{/gist_id}","starred_url":"https://api.github.com/users/safar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safar/subscriptions","organizations_url":"https://api.github.com/users/safar/orgs","repos_url":"https://api.github.com/users/safar/repos","events_url":"https://api.github.com/users/safar/events{/privacy}","received_events_url":"https://api.github.com/users/safar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-17T08:51:04Z","updated_at":"2016-10-17T08:51:04Z","closed_at":null,"body":"I am using Netty together with Comsat's webactors.\r\n\r\nBody string set with `co.paralleluniverse.comsat.webactors.HttpResponse.error()` method is never displayed.\r\n\r\nI have following block of code:\r\n\r\n```java\r\nif (succeded) {\r\n  msg.getFrom().send(HttpResponse.ok(self(), msg, \"JSON parsed successfully\")\r\n      .setContentType(\"text/plain\").build());\r\n} else {\r\n  System.out.println(\"RPC failed\");\r\n  msg.getFrom().send(HttpResponse.error(self(), msg, 500, \"RPC failed\")\r\n      .setContentType(\"text/plain\").build());\r\n}\r\n```\r\n\r\nWhen it succeeds it will print out \"JSON parsed successfully\" in Response body, but if it fails it returns 500 Internal server error  without body string that was set to \"RPC failed\".\r\n\r\nHere is the output of Postman for both cases:\r\n\r\n- 200 OK\r\n![ok](https://cloud.githubusercontent.com/assets/2071358/19431142/7fe0fa62-9457-11e6-859c-54f87f9a45bb.gif)\r\n- 500 Internal server error\r\n![error](https://cloud.githubusercontent.com/assets/2071358/19431060/2000ce56-9457-11e6-8f02-115c2f98dd47.gif)\r\n\r\nCan you please confirm if it is a bug or there is something else at hand here?"}}
{"actor":{"display_login":"safar"}}