{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/458","repository_url":"https://api.github.com/repos/ReactiveX/RxNetty","labels_url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/458/comments","events_url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/458/events","html_url":"https://github.com/ReactiveX/RxNetty/issues/458","id":122992041,"number":458,"title":"How to send error response when Observable passed into write method fails","user":{"login":"rstoyanchev","id":401908,"avatar_url":"https://avatars.githubusercontent.com/u/401908?v=3","gravatar_id":"","url":"https://api.github.com/users/rstoyanchev","html_url":"https://github.com/rstoyanchev","followers_url":"https://api.github.com/users/rstoyanchev/followers","following_url":"https://api.github.com/users/rstoyanchev/following{/other_user}","gists_url":"https://api.github.com/users/rstoyanchev/gists{/gist_id}","starred_url":"https://api.github.com/users/rstoyanchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstoyanchev/subscriptions","organizations_url":"https://api.github.com/users/rstoyanchev/orgs","repos_url":"https://api.github.com/users/rstoyanchev/repos","events_url":"https://api.github.com/users/rstoyanchev/events{/privacy}","received_events_url":"https://api.github.com/users/rstoyanchev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-18T17:27:09Z","updated_at":"2016-03-07T17:50:18Z","closed_at":null,"body":"It seems there is no way to send an error response (e.g. 500 vs 200) once any of the `ResponseContentWriter` write methods is called which commits the response. How does one deal with errors that may occur on the `Observable` passed into the write methods? Technically if the failure occurs before any data is produced, it should still be possible to change the response.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/comments/193367762","html_url":"https://github.com/ReactiveX/RxNetty/issues/458#issuecomment-193367762","issue_url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/458","id":193367762,"user":{"login":"rstoyanchev","id":401908,"avatar_url":"https://avatars.githubusercontent.com/u/401908?v=3","gravatar_id":"","url":"https://api.github.com/users/rstoyanchev","html_url":"https://github.com/rstoyanchev","followers_url":"https://api.github.com/users/rstoyanchev/followers","following_url":"https://api.github.com/users/rstoyanchev/following{/other_user}","gists_url":"https://api.github.com/users/rstoyanchev/gists{/gist_id}","starred_url":"https://api.github.com/users/rstoyanchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstoyanchev/subscriptions","organizations_url":"https://api.github.com/users/rstoyanchev/orgs","repos_url":"https://api.github.com/users/rstoyanchev/repos","events_url":"https://api.github.com/users/rstoyanchev/events{/privacy}","received_events_url":"https://api.github.com/users/rstoyanchev/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T17:50:18Z","updated_at":"2016-03-07T17:50:18Z","body":"Sure see [WriteWithOperator](https://github.com/spring-projects/spring-reactive/blob/master/src/main/java/org/springframework/http/server/reactive/WriteWithOperator.java), this is with Project Reactor but the concept is the same."}}