automatically rollback session on 4xx/5xx responses
consistent code-style