update http read logic
update state table
add new error code: no train, server error