{"action":"opened","issue":{"url":"https://api.github.com/repos/MaelREBOUX/osm-br/issues/1","repository_url":"https://api.github.com/repos/MaelREBOUX/osm-br","labels_url":"https://api.github.com/repos/MaelREBOUX/osm-br/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/MaelREBOUX/osm-br/issues/1/comments","events_url":"https://api.github.com/repos/MaelREBOUX/osm-br/issues/1/events","html_url":"https://github.com/MaelREBOUX/osm-br/issues/1","id":150666695,"number":1,"title":"homogénéiser les retours erreurs JSON","user":{"login":"MaelREBOUX","id":6370443,"avatar_url":"https://avatars.githubusercontent.com/u/6370443?v=3","gravatar_id":"","url":"https://api.github.com/users/MaelREBOUX","html_url":"https://github.com/MaelREBOUX","followers_url":"https://api.github.com/users/MaelREBOUX/followers","following_url":"https://api.github.com/users/MaelREBOUX/following{/other_user}","gists_url":"https://api.github.com/users/MaelREBOUX/gists{/gist_id}","starred_url":"https://api.github.com/users/MaelREBOUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaelREBOUX/subscriptions","organizations_url":"https://api.github.com/users/MaelREBOUX/orgs","repos_url":"https://api.github.com/users/MaelREBOUX/repos","events_url":"https://api.github.com/users/MaelREBOUX/events{/privacy}","received_events_url":"https://api.github.com/users/MaelREBOUX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-24T14:36:11Z","updated_at":"2016-04-24T14:36:11Z","closed_at":null,"body":"utiliser systématiquement ```return jsonify(error = \"bad code insee argument\"), 400``` qui renvoie un message d'erreur en JSON avec un http status 400\r\n\r\nplutôt que ```abort(400)``` qui renvoie un \"400: Bad Request\" en HTML"}}