Module: ChanPay::Http::RetCode
- Defined in:
- lib/chan_pay/http/ret_code.rb
Constant Summary collapse
- UNKNOWN_ERROR =
'UNKNOWN_ERROR'
- NET_TIMEOUT =
'NET_TIMEOUT'
Class Method Summary collapse
Class Method Details
.general_error_response(http_status, code) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/chan_pay/http/ret_code.rb', line 9 def self.general_error_response(http_status, code) { :AcceptStatus => "F", # 业务受理失败 :RetCode => code, :RetMsg => "网络异常(#{http_status})", :Status => "F", # 业务失败 } end |