Make APIResponse construct with a request