Commit 1011fe4f authored by Leigh B Stoller's avatar Leigh B Stoller

Add an error code for stitching. I know, odd place for it but it fits

with all the other geni error codes that percolate back to the user
via the web interface.
parent 9ea28d28
......@@ -49,6 +49,7 @@ use vars qw(@ISA @EXPORT);
GENIRESPONSE_VLAN_UNAVAILABLE GENIRESPONSE_INSUFFICIENT_BANDWIDTH
GENIRESPONSE_INSUFFICIENT_NODES GENIRESPONSE_SERVER_UNAVAILABLE
GENIRESPONSE_INSUFFICIENT_MEMORY GENIRESPONSE_NO_MAPPING
GENIRESPONSE_STITCHER_ERROR
XMLRPC_PARSE_ERROR XMLRPC_SERVER_ERROR XMLRPC_APPLICATION_ERROR
XMLRPC_SYSTEM_ERROR XMLRPC_TRANSPORT_ERROR);
......@@ -82,6 +83,8 @@ sub GENIRESPONSE_INSUFFICIENT_NODES() {26; }
sub GENIRESPONSE_INSUFFICIENT_MEMORY() {27; }
sub GENIRESPONSE_NO_MAPPING() {28; }
sub GENIRESPONSE_NOT_IMPLEMENTED() {100; }
# Yes, an odd place for this but I need it defined someplace.
sub GENIRESPONSE_STITCHER_ERROR() {101; }
# This is HTTP_SERVICE_UNAVAILABLE
sub GENIRESPONSE_SERVER_UNAVAILABLE() {503;}
sub GENIRESPONSE() { return $current_response; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment