mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
23 lines
429 B
Ruby
23 lines
429 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ErrorsController < ApplicationController
|
|
layout "errors"
|
|
|
|
def not_found
|
|
Bugsnag.notify("404") do |event|
|
|
event.severity = "info"
|
|
|
|
event.add_metadata(:request, request.env)
|
|
end
|
|
render status: :not_found
|
|
end
|
|
|
|
def internal_server_error
|
|
render status: :internal_server_error
|
|
end
|
|
|
|
def unprocessable_entity
|
|
render status: :unprocessable_entity
|
|
end
|
|
end
|