greenlight/app/controllers/errors_controller.rb
2018-06-26 10:29:46 -04:00

16 lines
228 B
Ruby

# frozen_string_literal: true
class ErrorsController < ApplicationController
def not_found
render status: 404
end
def unprocessable
render status: 422
end
def internal_error
render status: 500
end
end