errno.proto 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Licensed to the Apache Software Foundation (ASF) under one
  2. // or more contributor license agreements. See the NOTICE file
  3. // distributed with this work for additional information
  4. // regarding copyright ownership. The ASF licenses this file
  5. // to you under the Apache License, Version 2.0 (the
  6. // "License"); you may not use this file except in compliance
  7. // with the License. You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing,
  12. // software distributed under the License is distributed on an
  13. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. // KIND, either express or implied. See the License for the
  15. // specific language governing permissions and limitations
  16. // under the License.
  17. syntax="proto2";
  18. package brpc;
  19. option java_package="com.brpc";
  20. option java_outer_classname="BaiduRpcErrno";
  21. enum Errno {
  22. // Errno caused by client
  23. ENOSERVICE = 1001; // Service not found
  24. ENOMETHOD = 1002; // Method not found
  25. EREQUEST = 1003; // Bad Request
  26. ERPCAUTH = 1004; // Unauthorized, can't be called EAUTH
  27. // directly which is defined in MACOSX
  28. ETOOMANYFAILS = 1005; // Too many sub calls failed
  29. EPCHANFINISH = 1006; // [Internal] ParallelChannel finished
  30. EBACKUPREQUEST = 1007; // Sending backup request
  31. ERPCTIMEDOUT = 1008; // RPC call is timed out
  32. EFAILEDSOCKET = 1009; // Broken socket
  33. EHTTP = 1010; // Bad http call
  34. EOVERCROWDED = 1011; // The server is overcrowded
  35. ERTMPPUBLISHABLE = 1012; // RtmpRetryingClientStream is publishable
  36. ERTMPCREATESTREAM = 1013; // createStream was rejected by the RTMP server
  37. EEOF = 1014; // Got EOF
  38. EUNUSED = 1015; // The socket was not needed
  39. ESSL = 1016; // SSL related error
  40. EH2RUNOUTSTREAMS = 1017; // The H2 socket was run out of streams
  41. EREJECT = 1018; // The Request is rejected
  42. // Errno caused by server
  43. EINTERNAL = 2001; // Internal Server Error
  44. ERESPONSE = 2002; // Bad Response
  45. ELOGOFF = 2003; // Server is stopping
  46. ELIMIT = 2004; // Reached server's limit on resources
  47. ECLOSE = 2005; // Close socket initiatively
  48. EITP = 2006; // Failed Itp response
  49. }