{"action":"created","issue":{"url":"https://api.github.com/repos/zecure/shadowd_php/issues/5","repository_url":"https://api.github.com/repos/zecure/shadowd_php","labels_url":"https://api.github.com/repos/zecure/shadowd_php/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/zecure/shadowd_php/issues/5/comments","events_url":"https://api.github.com/repos/zecure/shadowd_php/issues/5/events","html_url":"https://github.com/zecure/shadowd_php/issues/5","id":153248992,"number":5,"title":"Custom status-code if shadowd not reachable","user":{"login":"Lem","id":199086,"avatar_url":"https://avatars.githubusercontent.com/u/199086?v=3","gravatar_id":"","url":"https://api.github.com/users/Lem","html_url":"https://github.com/Lem","followers_url":"https://api.github.com/users/Lem/followers","following_url":"https://api.github.com/users/Lem/following{/other_user}","gists_url":"https://api.github.com/users/Lem/gists{/gist_id}","starred_url":"https://api.github.com/users/Lem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lem/subscriptions","organizations_url":"https://api.github.com/users/Lem/orgs","repos_url":"https://api.github.com/users/Lem/repos","events_url":"https://api.github.com/users/Lem/events{/privacy}","received_events_url":"https://api.github.com/users/Lem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zecure/shadowd_php/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"zit-hb","id":8362751,"avatar_url":"https://avatars.githubusercontent.com/u/8362751?v=3","gravatar_id":"","url":"https://api.github.com/users/zit-hb","html_url":"https://github.com/zit-hb","followers_url":"https://api.github.com/users/zit-hb/followers","following_url":"https://api.github.com/users/zit-hb/following{/other_user}","gists_url":"https://api.github.com/users/zit-hb/gists{/gist_id}","starred_url":"https://api.github.com/users/zit-hb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zit-hb/subscriptions","organizations_url":"https://api.github.com/users/zit-hb/orgs","repos_url":"https://api.github.com/users/zit-hb/repos","events_url":"https://api.github.com/users/zit-hb/events{/privacy}","received_events_url":"https://api.github.com/users/zit-hb/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-05-05T14:53:22Z","updated_at":"2016-05-05T18:00:30Z","closed_at":null,"body":"I'm currently testing shadowd and the php-connector.\r\n\r\nAfter rebooting my test-VM I've got 500 because shadowd was not running. At first I was searching the logs until I noticed that shadowd was not running.\r\nI know it's my fault for not enabling shadowd on boot but for this situation I have a feature to suggest:\r\n\r\nWhy not make is possible to define a custom http-status if the connector can not connect to its server?\r\n\r\nMaybe something like an (yet) undefined HTTP-statuscode. \r\nBased on the webserver it should be possible to provide a custom error-page if the application returns e.g a 555 http-status.\r\nThis would also allow a monitoring-system to alert its operator if its not possible to check for a running shadowd on server side. And its nicer for the visitor to see a custom error-page than a 500.\r\n\r\n**In short:**\r\nThis is a feature-request for a setting inside the connector to set a custom http-status on a not working connection to shadowd."},"comment":{"url":"https://api.github.com/repos/zecure/shadowd_php/issues/comments/217227304","html_url":"https://github.com/zecure/shadowd_php/issues/5#issuecomment-217227304","issue_url":"https://api.github.com/repos/zecure/shadowd_php/issues/5","id":217227304,"user":{"login":"zit-hb","id":8362751,"avatar_url":"https://avatars.githubusercontent.com/u/8362751?v=3","gravatar_id":"","url":"https://api.github.com/users/zit-hb","html_url":"https://github.com/zit-hb","followers_url":"https://api.github.com/users/zit-hb/followers","following_url":"https://api.github.com/users/zit-hb/following{/other_user}","gists_url":"https://api.github.com/users/zit-hb/gists{/gist_id}","starred_url":"https://api.github.com/users/zit-hb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zit-hb/subscriptions","organizations_url":"https://api.github.com/users/zit-hb/orgs","repos_url":"https://api.github.com/users/zit-hb/repos","events_url":"https://api.github.com/users/zit-hb/events{/privacy}","received_events_url":"https://api.github.com/users/zit-hb/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T18:00:30Z","updated_at":"2016-05-05T18:00:30Z","body":"I have thought about this many times. I did not add it yet, because I don't want to reveal the presence of the firewall to attackers. That's where the shadow part of the name comes from. But I guess it would be nice to optionally offer this functionality via a configuration parameter. I will add this once I find some time."}}