added console logs for HTTP status