log upload errors (status code >= 500)
fix typo