title: ERROR Validation error: Lambda function result failed validation, the function tried to delete read-only header, headerName : Content-Length
body: <p>whenever I am trying to add response headers, the CloudFront throws me the</p>
  <p>ERROR Validation error: Lambda function result failed validation, the function tried to delete read-only header, headerName : Content-Length.</p>
  <p>ERROR Validation error: Lambda function result failed validation, the function tried to delete read-only header, headerName : Content-Encoding.</p>
  <pre><code>const response = {
        status: '302',
        statusDescription: 'Found',
        headers: {
                  'location': [{
                                key: 'location',
                                value: 'https://abc.test.io'
                               }],
                   'set-cookie': [{
                                 key: 'set-cookie',
                                 value: 'sessiontoken='+sessionObjectData.session.sessionId+'; Secure; HttpOnly'
                                  }]
                  }
    }
  callback(null, response)
  </code></pre>
  <p>Can someone let me know what I am doing wrong here ? BTW, I am using viewer-response event</p>