the httpError function was changed