Class: Pragma::Operation::Response::Conflict
- Inherits:
-
Pragma::Operation::Response
- Object
- Pragma::Operation::Response
- Pragma::Operation::Response::Conflict
- Defined in:
- lib/pragma/operation/response/conflict.rb
Overview
Represents the 409 Conflict HTTP response.
Constant Summary
Constants inherited from Pragma::Operation::Response
Instance Attribute Summary
Attributes inherited from Pragma::Operation::Response
Instance Method Summary collapse
-
#initialize(entity: Error.new( error_type: :conflict, error_message: 'Your request is in conflict with other content on this server.' ), headers: {}) ⇒ Conflict
constructor
A new instance of Conflict.
Methods inherited from Pragma::Operation::Response
#decorate_with, #failure?, #success?
Constructor Details
#initialize(entity: Error.new( error_type: :conflict, error_message: 'Your request is in conflict with other content on this server.' ), headers: {}) ⇒ Conflict
8 9 10 11 12 13 14 15 16 |
# File 'lib/pragma/operation/response/conflict.rb', line 8 def initialize( entity: Error.new( error_type: :conflict, error_message: 'Your request is in conflict with other content on this server.' ), headers: {} ) super(status: 409, entity: entity, headers: headers) end |