mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
18 lines
305 B
Ruby
18 lines
305 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ErrorsController < ApplicationController
|
|
layout "errors"
|
|
|
|
def not_found
|
|
render status: :not_found
|
|
end
|
|
|
|
def internal_server_error
|
|
render status: :internal_server_error
|
|
end
|
|
|
|
def unprocessable_entity
|
|
render status: :unprocessable_entity
|
|
end
|
|
end
|