HException eliminated, using HTTP status codes as error constants