{"action":"closed","issue":{"url":"https://api.github.com/repos/echlebek/erickson/issues/2","labels_url":"https://api.github.com/repos/echlebek/erickson/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/echlebek/erickson/issues/2/comments","events_url":"https://api.github.com/repos/echlebek/erickson/issues/2/events","html_url":"https://github.com/echlebek/erickson/issues/2","id":114752117,"number":2,"title":"POST to /login with bad credentials should return 401 Unauthorized","user":{"login":"dtcaciuc","id":847299,"avatar_url":"https://avatars.githubusercontent.com/u/847299?v=3","gravatar_id":"","url":"https://api.github.com/users/dtcaciuc","html_url":"https://github.com/dtcaciuc","followers_url":"https://api.github.com/users/dtcaciuc/followers","following_url":"https://api.github.com/users/dtcaciuc/following{/other_user}","gists_url":"https://api.github.com/users/dtcaciuc/gists{/gist_id}","starred_url":"https://api.github.com/users/dtcaciuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtcaciuc/subscriptions","organizations_url":"https://api.github.com/users/dtcaciuc/orgs","repos_url":"https://api.github.com/users/dtcaciuc/repos","events_url":"https://api.github.com/users/dtcaciuc/events{/privacy}","received_events_url":"https://api.github.com/users/dtcaciuc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"echlebek","id":1633772,"avatar_url":"https://avatars.githubusercontent.com/u/1633772?v=3","gravatar_id":"","url":"https://api.github.com/users/echlebek","html_url":"https://github.com/echlebek","followers_url":"https://api.github.com/users/echlebek/followers","following_url":"https://api.github.com/users/echlebek/following{/other_user}","gists_url":"https://api.github.com/users/echlebek/gists{/gist_id}","starred_url":"https://api.github.com/users/echlebek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echlebek/subscriptions","organizations_url":"https://api.github.com/users/echlebek/orgs","repos_url":"https://api.github.com/users/echlebek/repos","events_url":"https://api.github.com/users/echlebek/events{/privacy}","received_events_url":"https://api.github.com/users/echlebek/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-03T06:34:42Z","updated_at":"2015-11-03T07:49:49Z","closed_at":"2015-11-03T07:49:49Z","body":"Currently it responds with 303 See Other. This happens here\r\n\r\nhttps://github.com/echlebek/erickson/blob/master/server/auth.go#L82\r\n\r\nAccording to w3 spec:\r\n\r\n> If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials."}}