XmlRpcErrorCodes.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. namespace Nwc.XmlRpc
  2. {
  3. using System;
  4. /// <summary>Standard XML-RPC error codes.</summary>
  5. public class XmlRpcErrorCodes
  6. {
  7. /// <summary></summary>
  8. public const int PARSE_ERROR_MALFORMED = -32700;
  9. /// <summary></summary>
  10. public const String PARSE_ERROR_MALFORMED_MSG = "Parse Error, not well formed";
  11. /// <summary></summary>
  12. public const int PARSE_ERROR_ENCODING = -32701;
  13. /// <summary></summary>
  14. public const String PARSE_ERROR_ENCODING_MSG = "Parse Error, unsupported encoding";
  15. //
  16. // -32702 ---> parse error. invalid character for encoding
  17. // -32600 ---> server error. invalid xml-rpc. not conforming to spec.
  18. //
  19. /// <summary></summary>
  20. public const int SERVER_ERROR_METHOD = -32601;
  21. /// <summary></summary>
  22. public const String SERVER_ERROR_METHOD_MSG = "Server Error, requested method not found";
  23. /// <summary></summary>
  24. public const int SERVER_ERROR_PARAMS = -32602;
  25. /// <summary></summary>
  26. public const String SERVER_ERROR_PARAMS_MSG = "Server Error, invalid method parameters";
  27. //
  28. // -32603 ---> server error. internal xml-rpc error
  29. //
  30. /// <summary></summary>
  31. public const int APPLICATION_ERROR = -32500;
  32. /// <summary></summary>
  33. public const String APPLICATION_ERROR_MSG = "Application Error";
  34. //
  35. // -32400 ---> system error
  36. //
  37. /// <summary></summary>
  38. public const int TRANSPORT_ERROR = -32300;
  39. /// <summary></summary>
  40. public const String TRANSPORT_ERROR_MSG = "Transport Layer Error";
  41. }
  42. }