Exception: HookSniff::PayloadTooLargeError

Inherits:
Error
  • Object
show all
Defined in:
lib/hooksniff/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#error_code, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Payload too large") ⇒ PayloadTooLargeError

Returns a new instance of PayloadTooLargeError.



39
40
41
# File 'lib/hooksniff/errors.rb', line 39

def initialize(message = "Payload too large")
  super(message, status_code: 413, error_code: "PAYLOAD_TOO_LARGE")
end