code: public function errors($errors, $defaultStatusCode = null, array $headers = [])
      {
          if ($errors instanceof ErrorResponseInterface) {
              return $this->getErrorResponse($errors);
          }
  
          if (is_array($errors)) {
              $errors = $this->api->getErrors()->errors(...$errors);
          }
  
          return $this->errors(
              $this->factory->createErrorResponse($errors, $defaultStatusCode, $headers)
          );
      }
docs: Create a response containing multiple errors.
  
  @param mixed $errors
  @param int|null $defaultStatusCode
  @param array $headers
  @return mixed