small enhancements

small enhancements

small enhancements

small enhancements
use constants for http errors