{"action":"closed","issue":{"url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/56","labels_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/56/comments","events_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/56/events","html_url":"https://github.com/lexik/LexikJWTAuthenticationBundle/issues/56","id":65949096,"number":56,"title":"Change Entry Point ?","user":{"login":"vincentdieltiens","id":589764,"avatar_url":"https://avatars.githubusercontent.com/u/589764?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentdieltiens","html_url":"https://github.com/vincentdieltiens","followers_url":"https://api.github.com/users/vincentdieltiens/followers","following_url":"https://api.github.com/users/vincentdieltiens/following{/other_user}","gists_url":"https://api.github.com/users/vincentdieltiens/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentdieltiens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentdieltiens/subscriptions","organizations_url":"https://api.github.com/users/vincentdieltiens/orgs","repos_url":"https://api.github.com/users/vincentdieltiens/repos","events_url":"https://api.github.com/users/vincentdieltiens/events{/privacy}","received_events_url":"https://api.github.com/users/vincentdieltiens/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T15:18:52Z","updated_at":"2015-04-07T07:17:12Z","closed_at":"2015-04-07T07:17:12Z","body":"Hi,\r\n\r\nI would change the body of entry point when the user tries to use a protected API without being authenticated.\r\nThe default body is :\r\n```json\r\n{\r\n    \"code\": 401,\r\n    \"message\": \"Invalid Credentials\"\r\n}\r\n```\r\n\r\nTo be consistent with other message errors, I would like to have :\r\n```json\r\n{\r\n    \"error\": {\r\n        \"code\": 401,\r\n        \"message\": \"Invalid Credentials\"\r\n    }\r\n}\r\n```\r\n\r\nIs there a way to do that ?\r\n\r\nThanks,\r\n\r\nVincent\r\n\r\n"}}