Class: Pragma::Operation::Response::Conflict

Inherits:
Pragma::Operation::Response show all
Defined in:
lib/pragma/operation/response/conflict.rb

Overview

Represents the 409 Conflict HTTP response.

Constant Summary

Constants inherited from Pragma::Operation::Response

STATUSES

Instance Attribute Summary

Attributes inherited from Pragma::Operation::Response

#entity, #headers, #status

Instance Method Summary collapse

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