obstools/healthcheck-endpoint

View on GitHub
lib/healthcheck_endpoint/error/configuration/http_status_success.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module HealthcheckEndpoint
  module Error
    module Configuration
      HttpStatusSuccess = ::Class.new(::ArgumentError) do
        def initialize(arg_value, arg_name)
          super("Status #{arg_value} is wrong HTTP successful status for #{arg_name}. It should be in the range 200-226")
        end
      end
    end
  end
end