{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2056","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2056/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2056/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2056/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2056","id":112824203,"number":2056,"title":"HTTP Status codes","user":{"login":"aaabdul","id":8946667,"avatar_url":"https://avatars.githubusercontent.com/u/8946667?v=3","gravatar_id":"","url":"https://api.github.com/users/aaabdul","html_url":"https://github.com/aaabdul","followers_url":"https://api.github.com/users/aaabdul/followers","following_url":"https://api.github.com/users/aaabdul/following{/other_user}","gists_url":"https://api.github.com/users/aaabdul/gists{/gist_id}","starred_url":"https://api.github.com/users/aaabdul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaabdul/subscriptions","organizations_url":"https://api.github.com/users/aaabdul/orgs","repos_url":"https://api.github.com/users/aaabdul/repos","events_url":"https://api.github.com/users/aaabdul/events{/privacy}","received_events_url":"https://api.github.com/users/aaabdul/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-22T15:07:57Z","updated_at":"2015-10-22T15:37:58Z","closed_at":"2015-10-22T15:37:58Z","body":"Apologies if this is a duplicate. \r\n\r\nIs there any way we can send different http status codes on invalid credentials ?\r\n\r\n context.AuthenticateResult = new AuthenticateResult(\"error\");\r\n\r\nI can only see the above implementation and I don't see how I can change the HTTP status code sent back to caller. Also is there a way to send a custom JSON back to caller on invalid credentials ?"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/150265383","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2056#issuecomment-150265383","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2056","id":150265383,"user":{"login":"leastprivilege","id":1454075,"avatar_url":"https://avatars.githubusercontent.com/u/1454075?v=3","gravatar_id":"","url":"https://api.github.com/users/leastprivilege","html_url":"https://github.com/leastprivilege","followers_url":"https://api.github.com/users/leastprivilege/followers","following_url":"https://api.github.com/users/leastprivilege/following{/other_user}","gists_url":"https://api.github.com/users/leastprivilege/gists{/gist_id}","starred_url":"https://api.github.com/users/leastprivilege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leastprivilege/subscriptions","organizations_url":"https://api.github.com/users/leastprivilege/orgs","repos_url":"https://api.github.com/users/leastprivilege/repos","events_url":"https://api.github.com/users/leastprivilege/events{/privacy}","received_events_url":"https://api.github.com/users/leastprivilege/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T15:37:58Z","updated_at":"2015-10-22T15:37:58Z","body":"But you can open a feature request with a description of how you think this should work."}}