Sha256: 0c0428691649e42ab66afa84bb313f4a3bf3febef6034d772b59043891f96e24
Contents?: true
Size: 383 Bytes
Versions: 90
Compression:
Stored size: 383 Bytes
Contents
class ReeRoda::StatusFromError include Ree::FnDSL fn :status_from_error contract(Symbol => Nilor[Integer]) def call(error_type) case error_type when :not_found 404 when :invalid_param 400 when :conflict 405 when :auth 401 when :permission 403 when :payment 402 when :validation 422 end end end
Version data entries
90 entries across 90 versions & 1 rubygems