The following has been copied/pasted from the following msdn webpage. If you have questions around BITS configuration and usage then book mark this page for future reference.
BITS Return Values
The Bitsmsg.h file contains the following return value constants. The constants represent return values that BITS generates and HTTP return values that BITS captures. All other return values that you can receive are COM, RPC, or converted Windows return values (BITS uses theHRESULT_FROM_WIN32 macro to convert the Windows return values to HRESULT values).
Note that the Bitsmsg.h file contains additional return values not listed below.
A subset of the job's files transferred successfully before the IBackgroundCopyJob::Complete method was called. Those that were not complete were deleted.
Unable to delete all temporary files associated with the job.
The configuration preference has been saved successfully, but the preference will not be used because a configured Group Policy setting overrides the preference.
The requested job was not found.
The requested action is not allowed in the current job state.
The job must contain one or more files before you can resume the job.
File information is not available because the error is not associated with a local or remote file.
Protocol information is not available because the error is not associated with the specified transfer protocol.
The destination file system volume, specified in the local file name, is locked.
The destination volume, specified in the local file name, has changed. For example, the original floppy disk has been replaced with a different floppy disk.
Error information is only available when the state of the job is BG_JOB_STATE_ERROR. The error information is not available after BITS begins transferring the job's data or the client exits.
The network adapter is inactive or disconnected. All jobs are placed in the BG_JOB_STATE_TRANSIENT_ERROR state.
The server did not return the file size. BITS only transfers static content and requires the HTTP server to return the Content-Length header. The transfer request fails if the URL points to dynamic content.
The server does not support the HTTP/1.1 protocol.
The server does not support the Content-Range header. Typically, you receive this error when you try to download dynamic content. You can also receive this error if an intermediate proxy is removing the Content-Range or Content-Length header.
Remote use of BITS is not supported. For more information, see Users and Network Connections.
The network drive mapping for the local file is different for the current owner than for the previous owner.
The new owner has insufficient permissions to the temporary job files.
The HTTP proxy list is too long. The list must not exceed 32 KB.
The HTTP proxy bypass list is too long. The list must not exceed 32 KB.
You cannot add more than one file to an upload job.
The contents of the local file changed after the transfer process began. The contents of the local file cannot change after the transfer process begins on an upload or upload-reply job.
The size of the upload file exceeds the maximum allowed upload size specified on the server.
The specified string is too long.
The client and server were unable to negotiate a protocol to use for the upload job.
Scripting or execute permissions are enabled on the IIS virtual directory associated with the job. To upload files to the virtual directory, disable the scripting and execute permissions on the virtual directory.
The user name cannot exceed 300 characters.
The password cannot exceed 65535 characters.
The specified authentication target is not valid.
The specified authentication scheme is not valid.
The specified byte range is invalid. The byte range must exist within the specified remote file.
The list of byte ranges contains overlapping or duplicate ranges, which are not supported.
Group Policy settings prevent background jobs from running at this time. For details, see the MaxInternetBandwidth policy.
Run-time error that indicates the proxy list or proxy bypass list that you specified using the IBackgroundCopyJob::SetProxySettingsmethod is invalid.
The format of the supplied security credentials is not valid.
The cache record has been deleted. The attempt to update it has been abandoned.
A Universal Plug and Play (UPnP) error has occurred. Please check your Internet Gateway Device.
Peer-caching is disabled.
The cache record is in use and cannot be changed or deleted. Try again after a few seconds.
The job count for the user has exceeded the per user job limit set by the MaxJobsPerUser Group Policy setting.
The job count for the computer has exceeded the per computer job limit set by the MaxJobsPerMachine Group Policy setting.
The file count for the job has exceeded the per job file limit set by the MaxFilesPerJob Group Policy setting.
The range count for the file has exceeded the per file range limit set by the MaxRangesPerFile Group Policy setting.
The application requested data from a website, but the response was not valid. For details, use Event Viewer to view the Application Logs\Microsoft\Windows\Bits-client\Operational log.
BITS timed out downloading the job. The download did not complete within the maximum download time set on the job or the MaxDownloadTime Group Policy setting.
The server could not process the transfer request because the syntax of the remote file name is invalid.
The user does not have permission to access the remote file. The requested resource requires user authentication.
The requested URL does not exist on the server.
In IIS 7, this error can indicate
- That BITS uploads are not enabled on the virtual directory (vdir) on the server.
- That the upload size exceeds the maximum upload limit (for details, see the BITSMaximumUploadSize IIS extension property).
The user does not have permission to access the proxy. The proxy requires user authentication.
The server cannot process the transfer request. The Uniform Resource Identifier (URI) in the remote file name is longer than the server can interpret.
The server does not support the functionality required to fulfill the request. In IIS 6, this error indicates that BITS uploads are not enabled on the virtual directory (vdir) on the server.
The service is temporarily overloaded and cannot process the request. Resume the job at a later time.
The transfer request timed out while waiting for a gateway. Resume the job at a later time.
The server does not support the HTTP protocol version specified in the remote file name.
The Bitsmsg.h header file contains additional HTTP return values not listed above that BITS uses internally. For information on these and other HTTP return values you can receive, see the RFC 2616 specification from the Internet Engineering Task Force athttp://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.