Catch error if header could not retrieved