handle requests by headers codes