{"action":"opened","issue":{"url":"https://api.github.com/repos/devfake/years-to-read/issues/6","repository_url":"https://api.github.com/repos/devfake/years-to-read","labels_url":"https://api.github.com/repos/devfake/years-to-read/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/devfake/years-to-read/issues/6/comments","events_url":"https://api.github.com/repos/devfake/years-to-read/issues/6/events","html_url":"https://github.com/devfake/years-to-read/issues/6","id":351853835,"node_id":"MDU6SXNzdWUzNTE4NTM4MzU=","number":6,"title":"Show proper message if api request is forbidden (403 status)","user":{"login":"devfake","id":2204770,"node_id":"MDQ6VXNlcjIyMDQ3NzA=","avatar_url":"https://avatars3.githubusercontent.com/u/2204770?v=4","gravatar_id":"","url":"https://api.github.com/users/devfake","html_url":"https://github.com/devfake","followers_url":"https://api.github.com/users/devfake/followers","following_url":"https://api.github.com/users/devfake/following{/other_user}","gists_url":"https://api.github.com/users/devfake/gists{/gist_id}","starred_url":"https://api.github.com/users/devfake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devfake/subscriptions","organizations_url":"https://api.github.com/users/devfake/orgs","repos_url":"https://api.github.com/users/devfake/repos","events_url":"https://api.github.com/users/devfake/events{/privacy}","received_events_url":"https://api.github.com/users/devfake/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-18T21:31:32Z","updated_at":"2018-08-18T21:31:32Z","closed_at":null,"author_association":"OWNER","body":"It could be the case, that the API volume of Google Books is exhausted. The response will return a 403 status code.\r\n\r\nI updated the backend and return this status to the client (https://github.com/devfake/years-to-read/commit/0d6591402df4ccc14155bcb9f14a0ccec1509423).\r\n\r\nWhat we need now is to display a message in the frontend. The best thing we can do is create a new variable, and set it to `true` if the response is a 403. And show a proper message in the template, similiar to the `Nothing found :(` span.\r\n\r\nBonus point: Move the hardcodet status codes (`404` for example) to own constants on top of the script (:"}}
{"actor":{"display_login":"devfake"}}