Class: Pragma::Operation::Response::NotFound
- Inherits:
-
Pragma::Operation::Response
- Object
- Pragma::Operation::Response
- Pragma::Operation::Response::NotFound
- Defined in:
- lib/pragma/operation/response/not_found.rb
Overview
Represents the 404 Not Found 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: :not_found, error_message: 'The requested resource could not be found.' ), headers: {}) ⇒ NotFound
constructor
Initializes the response.
Methods inherited from Pragma::Operation::Response
#decorate_with, #failure?, #success?
Constructor Details
#initialize(entity: Error.new( error_type: :not_found, error_message: 'The requested resource could not be found.' ), headers: {}) ⇒ NotFound
Initializes the response.
12 13 14 15 16 17 18 19 20 |
# File 'lib/pragma/operation/response/not_found.rb', line 12 def initialize( entity: Error.new( error_type: :not_found, error_message: 'The requested resource could not be found.' ), headers: {} ) super(status: 404, entity: entity, headers: headers) end |