{"action":"created","issue":{"url":"https://api.github.com/repos/Folkloreatelier/laravel-graphql/issues/37","repository_url":"https://api.github.com/repos/Folkloreatelier/laravel-graphql","labels_url":"https://api.github.com/repos/Folkloreatelier/laravel-graphql/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/Folkloreatelier/laravel-graphql/issues/37/comments","events_url":"https://api.github.com/repos/Folkloreatelier/laravel-graphql/issues/37/events","html_url":"https://github.com/Folkloreatelier/laravel-graphql/issues/37","id":164763965,"number":37,"title":"Status codes for error handling","user":{"login":"nicholas-littlelives","id":12389338,"avatar_url":"https://avatars.githubusercontent.com/u/12389338?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholas-littlelives","html_url":"https://github.com/nicholas-littlelives","followers_url":"https://api.github.com/users/nicholas-littlelives/followers","following_url":"https://api.github.com/users/nicholas-littlelives/following{/other_user}","gists_url":"https://api.github.com/users/nicholas-littlelives/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholas-littlelives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholas-littlelives/subscriptions","organizations_url":"https://api.github.com/users/nicholas-littlelives/orgs","repos_url":"https://api.github.com/users/nicholas-littlelives/repos","events_url":"https://api.github.com/users/nicholas-littlelives/events{/privacy}","received_events_url":"https://api.github.com/users/nicholas-littlelives/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-11T05:41:38Z","updated_at":"2016-08-01T18:59:33Z","closed_at":"2016-08-01T18:59:33Z","body":"I like how the graph-php and this package catch errors during the query and places the message in the payload. It does not however preserve the response status code set or $code attribute in the error object.\r\n\r\nAny chance this can be done?\r\n"},"comment":{"url":"https://api.github.com/repos/Folkloreatelier/laravel-graphql/issues/comments/236674000","html_url":"https://github.com/Folkloreatelier/laravel-graphql/issues/37#issuecomment-236674000","issue_url":"https://api.github.com/repos/Folkloreatelier/laravel-graphql/issues/37","id":236674000,"user":{"login":"dmongeau","id":124966,"avatar_url":"https://avatars.githubusercontent.com/u/124966?v=3","gravatar_id":"","url":"https://api.github.com/users/dmongeau","html_url":"https://github.com/dmongeau","followers_url":"https://api.github.com/users/dmongeau/followers","following_url":"https://api.github.com/users/dmongeau/following{/other_user}","gists_url":"https://api.github.com/users/dmongeau/gists{/gist_id}","starred_url":"https://api.github.com/users/dmongeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmongeau/subscriptions","organizations_url":"https://api.github.com/users/dmongeau/orgs","repos_url":"https://api.github.com/users/dmongeau/repos","events_url":"https://api.github.com/users/dmongeau/events{/privacy}","received_events_url":"https://api.github.com/users/dmongeau/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T18:59:33Z","updated_at":"2016-08-01T18:59:33Z","body":"Yes, I have added a config parameter to use a custom error formatter so you can add whatever you want to the error object returned by GraphQL. See `error_formatter` in  https://github.com/Folkloreatelier/laravel-graphql/blob/master/src/config/config.php . You will need to update to v0.4.4 .\r\n\r\nYou can check the formatError method in https://github.com/Folkloreatelier/laravel-graphql/blob/master/src/Folklore/GraphQL/GraphQL.php as a starting point.\r\n"}}
{"actor":{"display_login":"dmongeau"}}