Introduce error 2000

When a client sends invalid command to proxy, it should be reported as
error 2000 and sent to registry. We should sent them there regardless
This commit is contained in:
Maciej Szlosarczyk 2019-07-29 13:23:45 +03:00
parent 98483daccd
commit 203e119c2c
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
6 changed files with 86 additions and 24 deletions

View file

@ -9,3 +9,14 @@
}).
-type epp_request() :: #epp_request{}.
-define(XMLErrorCode, <<"2001">>).
-define(XMLErrorMessage, <<"Command syntax error.">>).
-define(UnknownCommandErrorCode, <<"2000">>).
-define(UnknownCommandErrorMessage, <<"Unknown command.">>).
-define(DefaultTimeout, 120000).