/** * Get the basic meta structure. * * @param Response $response * @return array */ protected function getBasics(Response $response) { return ['success' => !$this->isErrorCode($response->getStatusCode()), 'code' => $response->getStatusCode(), 'message' => $this->getMessage($response)]; }