refactor the response body

the chunk received always replaces the status code info
Merge branch 'hotfix/fix-response-body'