Type hint $response and update the docblock with the correct types.