Move all handling of HTTP responses into blocks.