Exception: Tilia::Dav::Exception::PaymentRequired

Inherits:
Tilia::Dav::Exception show all
Defined in:
lib/tilia/dav/exception/payment_required.rb

Overview

Payment Required

The PaymentRequired exception may be thrown in a case where a user must pay to access a certain resource or operation.

Instance Method Summary collapse

Methods inherited from Tilia::Dav::Exception

#http_headers, #serialize

Instance Method Details

#http_codeObject

Returns the HTTP statuscode for this exception

Returns:

  • int



12
13
14
# File 'lib/tilia/dav/exception/payment_required.rb', line 12

def http_code
  402
end