I am making a web callout in a Batch Apex class and occasionally I am receiving an HTTPResponse with a StatusCode = -1 and a Status = null. Any ideas on what this indicates?
Below are the entries from the debug log:
15:31:12.416 (5416593000)|CALLOUT_REQUEST||System.HttpRequest[Endpoint=https://sample.com/changed, Method=PUT] 15:31:12.574 (5574563000)|CALLOUT_RESPONSE||System.HttpResponse[Status=null, StatusCode=-1]
Edit: Please note I am asking about why this is occurring on the Force.com Platform and not why does this occur in Java.