Refactored the HTTP exception constructors