Fixed




<http://www.linkedin.com/in/amosshacham>


On Tue, Nov 12, 2013 at 3:40 PM, Dmitry Mukhin <notifications@github.com>wrote:

> In uploadcare/lib/5.2/Api.php:
>
> > @@ -163,7 +163,7 @@ public function request($method, $path, $data = array(), $headers = array())
> >          throw new Exception('Request returned unexpected http code '.$ch_info['http_code'].'. '.$data);
> >        }
> >      } else {
> > -      if ($ch_info['http_code'] != 200) {
> > +      if (($ch_info['http_code'] != 200)&&($ch_info['http_code'] != 201)) {
>
> better accept 200 <= code < 300.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/uploadcare/uploadcare-php/pull/11/files#r7591470>
> .
>