GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::EPP::ResponseCodes(3) User Contributed Perl Documentation Net::EPP::ResponseCodes(3)

Net::EPP::ResponseCodes - a module to export some constants that correspond to EPP response codes.

    use Net::EPP::ResponseCodes;
    use Net::EPP::Simple;
    use strict;
    my $epp = Net::EPP::Simple->new(
        host    => 'epp.nic.tld',
        user    => 'my-id',
        pass    => 'my-password',
    );
    my $result = $epp->domain_transfer_request('example.tld', 'foobar', 1);
    if ($result) {
        print "Transfer initiated OK\n";
    } else {
        if ($Net::EPP::Simple::Code == OBJECT_PENDING_TRANSFER) {
            print "Error: domain is already pending transfer\n";
        } elsif ($Net::EPP::Simple::Code == INVALID_AUTH_INFO) {
            print "Error: invalid authcode provided\n";
        } elsif ($Net::EPP::Simple::Code == OBJECT_DOES_NOT_EXIST) {
            print "Error: domain not found\n";
        } elsif ($Net::EPP::Simple::Code == STATUS_PROHIBITS_OP) {
            print "Error: domain cannot be transferred\n";
        } else {
            print "Error code $Net::EPP::Simple::Code\n";
        }
    }

Every response sent to the client by an EPP server contains at least one "<result>" element that has a "code" attribute. This is a four-digit numeric code that describes the result of the request. This module exports a set of constants that provide handy mnemonics for each of the defined codes.

"Net::EPP::ResponseCodes" exports the following constants. The number in brackets is the integer value associated with the constant.

Protocol Syntax

Implementation-specific Rules

Security (22nn)

Data Management (23nn)

Server System (24nn)

Connection Management (25nn)

This module is (c) 2008 - 2023 CentralNic Ltd and 2024 Gavin Brown. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2025-02-28 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.