added code for saving response status to schedule_details table, implementation of post request and handling error cases