summaryrefslogtreecommitdiff
path: root/app/services/service_response.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/service_response.rb')
-rw-r--r--app/services/service_response.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/service_response.rb b/app/services/service_response.rb
index f3437ba16de..08b7e9d0831 100644
--- a/app/services/service_response.rb
+++ b/app/services/service_response.rb
@@ -1,8 +1,8 @@
# frozen_string_literal: true
class ServiceResponse
- def self.success(message: nil, payload: {})
- new(status: :success, message: message, payload: payload)
+ def self.success(message: nil, payload: {}, http_status: :ok)
+ new(status: :success, message: message, payload: payload, http_status: http_status)
end
def self.error(message:, payload: {}, http_status: nil)