Minor cleanup in http-error code