Sha256: 3a01e4d0ff7657dac09befbbc3e0bb6b98db35c644e31952d56923f0958fca10

Contents?: true

Size: 171 Bytes

Versions: 30

Compression:

Stored size: 171 Bytes

Contents

def handler event
  response = {
    'message' => "Page Not Found. Edit the function 'catch-all' to customize this response."
  }
  render json: response, status: 404
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
faastruby-0.5.10 templates/ruby/api-404/handler.rb
faastruby-0.5.9 templates/ruby/api-404/handler.rb
faastruby-0.5.8 templates/ruby/api-404/handler.rb
faastruby-0.5.7 templates/ruby/api-404/handler.rb
faastruby-0.5.6 templates/ruby/api-404/handler.rb
faastruby-0.5.5 templates/ruby/api-404/handler.rb
faastruby-0.5.4 templates/ruby/api-404/handler.rb
faastruby-0.5.3 templates/ruby/api-404/handler.rb
faastruby-0.5.2 templates/ruby/api-404/handler.rb
faastruby-0.5.0 templates/ruby/api-404/handler.rb