api status codes for session state work