Some HTTP codes and session handler