Added titles to exceptions
Moved env() to base http class