fixed headers generation
added missed 'return'
headers generation reworked
base HTTP error