Irfan DANISH Irfan DANISH - 1 year ago 132
HTTP Question

What does HTTP status code 0 mean

I am working on iOS project.

In this application I am downloading images from server.


While downloading images I am getting Request Timeout. According to documentation HTTP status code of request timeout is


But in my application I am getting HTTP status code
with following error

Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0xb9af710 {NSErrorFailingURLStringKey=, NSErrorFailingURLKey=, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x13846870 "The request timed out."}

During search over internet I found no information about HTTP Status Code 0.

Can anyone explain this to me?

Answer Source

There is no HTTP status code 0. What you see is a 0 returned by the API/library that you are using. You will have to check the documentation for that.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download