title: Error Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable content-type: video/mp4"
body: <p>I have video in server url then i'm downloading from url using AFNetworking for later playing the video. But while downloading i got below error</p>
  
  <pre><code>Error Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable content-type: video/mp4" UserInfo=0x1e8b6d30 {NSErrorFailingURLKey=http://center.net/projects/AR/Medica/focusvideo.mp4, AFNetworkingOperationFailingURLResponseErrorKey=&lt;NSHTTPURLResponse: 0x1d55c260&gt;, NSLocalizedDescription=Request failed: unacceptable content-type: video/mp4}
  </code></pre>
  
  <p>code for download the video:</p>
  
  <pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
   NSString *documentsDirectory = [paths objectAtIndex:0]; // Get documents folder
   NSString *dataPath = [documentsDirectory stringByAppendingPathComponent:@"images"];
  
   if (![[NSFileManager defaultManager] fileExistsAtPath:dataPath])
   [[NSFileManager defaultManager] createDirectoryAtPath:dataPath withIntermediateDirectories:NO attributes:nil error:&amp;error];
  
   AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
  
   [manager.requestSerializer setValue:@"application/x-www-form-urlencoded"
   forHTTPHeaderField:@"Content-Type"];
  
   [manager setResponseSerializer:[AFJSONResponseSerializer serializer]];
   manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"video/mpeg", nil];
  
  
  
   [manager GET:@"http://center.net/projects/AR/Medica/focusvideo.mp4"
   parameters:nil
   success:^(AFHTTPRequestOperation *operation, id responseObject) {
   [operation.responseData writeToFile:[dataPath stringByAppendingPathComponent:@"focusvideo.mp4"] atomically:YES];
  
  
   NSLog(@"Successfully downloaded file to %@", [NSURL fileURLWithPath:dataPath]);
   NSLog(@"THE RESPONSE: %@", responseObject);
  
  
   }
   failure:^(AFHTTPRequestOperation *operation, NSError *error1) {
   NSLog(@"%@", error1);
   }];
  </code></pre>