protected function renderApiError(ApiException $exception) : JsonResponse { return app('responder.error')->setError($exception->getErrorCode(), $exception->getMessage())->addData($exception->getData() ?: [])->respond($exception->getStatusCode()); }