{"action":"created","issue":{"url":"https://api.github.com/repos/l3nz/ari4java/issues/33","labels_url":"https://api.github.com/repos/l3nz/ari4java/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/l3nz/ari4java/issues/33/comments","events_url":"https://api.github.com/repos/l3nz/ari4java/issues/33/events","html_url":"https://github.com/l3nz/ari4java/issues/33","id":107985705,"number":33,"title":"Throws exception on successful (201) HTTP response code","user":{"login":"korvus81","id":1017990,"avatar_url":"https://avatars.githubusercontent.com/u/1017990?v=3","gravatar_id":"","url":"https://api.github.com/users/korvus81","html_url":"https://github.com/korvus81","followers_url":"https://api.github.com/users/korvus81/followers","following_url":"https://api.github.com/users/korvus81/following{/other_user}","gists_url":"https://api.github.com/users/korvus81/gists{/gist_id}","starred_url":"https://api.github.com/users/korvus81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korvus81/subscriptions","organizations_url":"https://api.github.com/users/korvus81/orgs","repos_url":"https://api.github.com/users/korvus81/repos","events_url":"https://api.github.com/users/korvus81/events{/privacy}","received_events_url":"https://api.github.com/users/korvus81/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-23T19:05:22Z","updated_at":"2015-09-24T18:17:34Z","closed_at":"2015-09-24T18:15:03Z","body":"I'm using ARI 1.8.0 on Asterisk 13.5.0 and I noticed I was getting an exception thrown every time I tried to play an audio file, but the play was successful.  When I ngrep'd the traffic, I saw this was the response:\r\n\r\n```\r\nHTTP/1.1 201 Created\r\nServer: Asterisk/13.5.0\r\nDate: Wed, 23 Sep 2015 17:49:51 GMT\r\nConnection: close\r\nCache-Control: no-cache, no-store\r\nLocation: /playback/3kH7iFgvjn\r\nContent-type: application/json\r\nContent-Length: 144\r\n\r\n{\r\n  \"id\": \"3kH7iFgvjn\",\r\n  \"media_uri\": \"sound:tt-weasels\",\r\n  \"target_uri\": \"channel:1443030590.10\",\r\n  \"language\": \"en-us\",\r\n  \"state\": \"queued\"\r\n}\r\n```\r\n\r\nIn ```classes/ch/loway/oss/ari4java/tools/http/NettyHttpClient.java```, the code explicitly checks for OK (200) and NO_CONTENT (204), but a 201 will fall through to the exception throwing code.  I assume this is new behavior on behalf of Asterisk, but a 201 should still be considered successful."},"comment":{"url":"https://api.github.com/repos/l3nz/ari4java/issues/comments/143009741","html_url":"https://github.com/l3nz/ari4java/issues/33#issuecomment-143009741","issue_url":"https://api.github.com/repos/l3nz/ari4java/issues/33","id":143009741,"user":{"login":"l3nz","id":1101849,"avatar_url":"https://avatars.githubusercontent.com/u/1101849?v=3","gravatar_id":"","url":"https://api.github.com/users/l3nz","html_url":"https://github.com/l3nz","followers_url":"https://api.github.com/users/l3nz/followers","following_url":"https://api.github.com/users/l3nz/following{/other_user}","gists_url":"https://api.github.com/users/l3nz/gists{/gist_id}","starred_url":"https://api.github.com/users/l3nz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l3nz/subscriptions","organizations_url":"https://api.github.com/users/l3nz/orgs","repos_url":"https://api.github.com/users/l3nz/repos","events_url":"https://api.github.com/users/l3nz/events{/privacy}","received_events_url":"https://api.github.com/users/l3nz/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T18:17:34Z","updated_at":"2015-09-24T18:17:34Z","body":"Looks good! I'll edit the function a bit to use consistent bracing of the return value, but really - much appreciated!\r\n"}}