fixed autotools && reworked http codes