Sha256: 4fe9d14003bc798f9f1f301e25b0578a82816eb24810927f5b827743b26334e0

Contents?: true

Size: 196 Bytes

Versions: 1

Compression:

Stored size: 196 Bytes

Contents

require_relative './base'

class MainController < BaseController
  get '/badrequest' do
    raise HTTPError::BadRequest
  end

  get '/error' do
    raise HTTPError::InternalServerError
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra-errorcodes-0.1.1 example/controller.rb