{"action":"created","issue":{"url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/184","repository_url":"https://api.github.com/repos/SharePoint/sp-dev-docs","labels_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/184/comments","events_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/184/events","html_url":"https://github.com/SharePoint/sp-dev-docs/issues/184","id":176819818,"number":184,"title":"On a failed POST request using the HttpClient the promise is resolved as fulfilled ","user":{"login":"waldekmastykarz","id":11164679,"avatar_url":"https://avatars.githubusercontent.com/u/11164679?v=3","gravatar_id":"","url":"https://api.github.com/users/waldekmastykarz","html_url":"https://github.com/waldekmastykarz","followers_url":"https://api.github.com/users/waldekmastykarz/followers","following_url":"https://api.github.com/users/waldekmastykarz/following{/other_user}","gists_url":"https://api.github.com/users/waldekmastykarz/gists{/gist_id}","starred_url":"https://api.github.com/users/waldekmastykarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldekmastykarz/subscriptions","organizations_url":"https://api.github.com/users/waldekmastykarz/orgs","repos_url":"https://api.github.com/users/waldekmastykarz/repos","events_url":"https://api.github.com/users/waldekmastykarz/events{/privacy}","received_events_url":"https://api.github.com/users/waldekmastykarz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SharePoint/sp-dev-docs/labels/type:discussion","name":"type:discussion","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":{"login":"pgonzal","id":4673363,"avatar_url":"https://avatars.githubusercontent.com/u/4673363?v=3","gravatar_id":"","url":"https://api.github.com/users/pgonzal","html_url":"https://github.com/pgonzal","followers_url":"https://api.github.com/users/pgonzal/followers","following_url":"https://api.github.com/users/pgonzal/following{/other_user}","gists_url":"https://api.github.com/users/pgonzal/gists{/gist_id}","starred_url":"https://api.github.com/users/pgonzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgonzal/subscriptions","organizations_url":"https://api.github.com/users/pgonzal/orgs","repos_url":"https://api.github.com/users/pgonzal/repos","events_url":"https://api.github.com/users/pgonzal/events{/privacy}","received_events_url":"https://api.github.com/users/pgonzal/received_events","type":"User","site_admin":false},"assignees":[{"login":"pgonzal","id":4673363,"avatar_url":"https://avatars.githubusercontent.com/u/4673363?v=3","gravatar_id":"","url":"https://api.github.com/users/pgonzal","html_url":"https://github.com/pgonzal","followers_url":"https://api.github.com/users/pgonzal/followers","following_url":"https://api.github.com/users/pgonzal/following{/other_user}","gists_url":"https://api.github.com/users/pgonzal/gists{/gist_id}","starred_url":"https://api.github.com/users/pgonzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgonzal/subscriptions","organizations_url":"https://api.github.com/users/pgonzal/orgs","repos_url":"https://api.github.com/users/pgonzal/repos","events_url":"https://api.github.com/users/pgonzal/events{/privacy}","received_events_url":"https://api.github.com/users/pgonzal/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-09-14T05:40:18Z","updated_at":"2016-09-20T21:26:55Z","closed_at":"2016-09-20T21:26:37Z","body":"#### Category\r\n[ ] Question\r\n[ ] Typo\r\n[x] Bug\r\n[ ] Enhancement / Suggestion\r\n[ ] Additional article idea\r\n\r\n#### Expected or Desired Behavior\r\nIf the POST request results in a 4xx status code the promise should resolve as failed.\r\n\r\n#### Observed Behavior\r\nFor a POST request failed with a 400 Bad Request status, the promise resolves as fulfilled.\r\n\r\n#### Steps to Reproduce\r\nCall the /_api/web/list/getbytitle('listname')/items API using httpClient.post with an empty body."},"comment":{"url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/comments/248439680","html_url":"https://github.com/SharePoint/sp-dev-docs/issues/184#issuecomment-248439680","issue_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/184","id":248439680,"user":{"login":"pgonzal","id":4673363,"avatar_url":"https://avatars.githubusercontent.com/u/4673363?v=3","gravatar_id":"","url":"https://api.github.com/users/pgonzal","html_url":"https://github.com/pgonzal","followers_url":"https://api.github.com/users/pgonzal/followers","following_url":"https://api.github.com/users/pgonzal/following{/other_user}","gists_url":"https://api.github.com/users/pgonzal/gists{/gist_id}","starred_url":"https://api.github.com/users/pgonzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgonzal/subscriptions","organizations_url":"https://api.github.com/users/pgonzal/orgs","repos_url":"https://api.github.com/users/pgonzal/repos","events_url":"https://api.github.com/users/pgonzal/events{/privacy}","received_events_url":"https://api.github.com/users/pgonzal/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T21:26:54Z","updated_at":"2016-09-20T21:26:54Z","body":"(I'm closing this issue as \"by design\".  Please reopen it if you have more questions.)"}}
{"actor":{"display_login":"pgonzal"}}