---
title: responseHeaderFields
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phassetresourceuploadjob/responseheaderfields
---

# responseHeaderFields

The HTTP response headers received from the server upon completion of the upload.

## Declaration

```swift
var responseHeaderFields: [String : String]? { get }
```

## Mentioned in

Uploading asset resources in the background

## Return Value

Return Value A dictionary of response header fields, or nil if the job has not completed or no HTTP response was received.

## Discussion

Discussion This property is populated when the job reaches a terminal state (PHAssetResourceUploadJobStateSucceeded or PHAssetResourceUploadJobStateFailed). It contains the HTTP response headers returned by the destination server. Header field names are normalized to lowercase for consistent lookup.

## See Also

### Inspecting a job

- [type](photos/phassetresourceuploadjob/type-swift.property.md)
- [PHAssetResourceUploadJob.Type](photos/phassetresourceuploadjob/type-swift.enum.md)
- [destination](photos/phassetresourceuploadjob/destination.md)
- [resource](photos/phassetresourceuploadjob/resource.md)
- [state](photos/phassetresourceuploadjob/state-swift.property.md)
- [PHAssetResourceUploadJob.State](photos/phassetresourceuploadjob/state-swift.enum.md)
- [error](photos/phassetresourceuploadjob/error.md)
