def response_handler(resp: Response) -> Jsons: if resp.is_success: return [format_service_data(service) for service in resp.body] raise FoxxServiceListError(resp, request)
def response_handler(resp: Response) -> Json: if resp.is_success: return format_service_data(resp.body) raise FoxxDevModeDisableError(resp, request)
def response_handler(resp: Response) -> Json: if resp.is_success: return format_service_data(resp.body) raise FoxxScriptListError(resp, request)
def response_handler(resp: Response) -> Json: if resp.is_success: return format_service_data(resp.body) raise FoxxDependencyReplaceError(resp, request)