mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-16 19:16:49 +00:00
This reverts commit 2eec3d625a.
We started tracking 404 errors out of interest without an actual problem
to solve. Now we face rate-limiting in our Bugsnag account. And we
didn't use these 404 reports in the two years this code was active. We
don't even act on all 500 errors. So while our resources are so
constrained, let's keep our focus on the severe errors and user reports
and ignore the rest. 404 errors are mostly generated by vulnerability
scanners.
18 lines
321 B
Ruby
18 lines
321 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ErrorsController < ApplicationController
|
|
layout "errors"
|
|
|
|
def not_found
|
|
render status: :not_found, formats: :html
|
|
end
|
|
|
|
def internal_server_error
|
|
render status: :internal_server_error
|
|
end
|
|
|
|
def unprocessable_entity
|
|
render status: :unprocessable_entity
|
|
end
|
|
end
|