I found it. Perhaps it mentoning in HTTP::OAI::Error would make sense
my $response = new HTTP::OAI::Response;
$response->errors(new HTTP::OAI::Error( code => 'cannotDisseminateFormat' ));
$response->errors(new HTTP::OAI::Error( code => 'idDoesNotExist' ));
print $response->toDOM->toString. "\n";
On Mon, May 28, 2012 at 9:46 PM, Bugs in HTTP-OAI via RT
<bug-HTTP-OAI@rt.cpan.org> wrote:
Show quoted text>
> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
> "lists or OAI errors",
> a summary of which appears below.
>
> There is no need to reply to this message right now. Your ticket has been
> assigned an ID of [rt.cpan.org #77511]. Your ticket is accessible
> on the web at:
>
>
https://rt.cpan.org/Ticket/Display.html?id=77511
>
> Please include the string:
>
> [rt.cpan.org #77511]
>
> in the subject line of all future correspondence about this issue. To do so,
> you may reply to this message.
>
> Thank you,
> bug-HTTP-OAI@rt.cpan.org
>
> -------------------------------------------------------------------------
> Currently, it seems not possible to create multiple OAI errors as
> recommend by OAI 2.0 specification, see
>
http://www.openarchives.org/OAI/openarchivesprotocol.html#ErrorConditions
>