protected function renderValidationSerializerException(ValidationBaseSerializerException $error) {
		if ($this->isJsonApiRequest()) {
			return $this->renderValidationSerializerAsJsonApi($error);
		}

		if ($this->isJsonRequest()) {
			return $this->renderValidationSerializerAsJson($error);
		}

		return $this->defaultValidationSerializerRender($error);
	}