formatting and response code of 405
set is_upgrade session