Parse response headers from a xhr-request