Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it fail #2329

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/controllers/errors_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ class ErrorsController < ActionController::Base

def not_found
respond_to do |format|
format.html { render status: :not_found }
format.any { render json: { error: "Page not found" }, status: :not_found }
format.html { render status: :not_fund }
format.any { render json: { error: "Page not found" }, status: :not_fund }
end
end

def internal_server_error
respond_to do |format|
format.html { render status: :internal_server_error }
format.any { render json: { error: "Internal server error" }, status: :internal_server_error }
format.html { render status: :internl_server_error }
format.any { render json: { error: "Internal server error" }, status: :internl_server_error }
end
end

def unprocessable_entity
respond_to do |format|
format.html { render status: :unprocessable_entity }
format.any { render json: { error: "Unprocessable entity" }, status: :unprocessable_entity }
format.html { render status: :unproessable_entity }
format.any { render json: { error: "Unprocessable entity" }, status: :unproessable_entity }
end
end
end
Expand Down
Loading