refactored HTTP exceptions