check api status code in upload