Skip to content

Commit

Permalink
Merge pull request #179 from zooniverse/update-/-to-give-200-but-with…
Browse files Browse the repository at this point in the history
…-error-code

update root to give status 200 for healthcheckz
  • Loading branch information
yuenmichelle1 authored Dec 18, 2023
2 parents d47a913 + 2f78625 commit 5777cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Api < Sinatra::Base
end

get '/' do
[410, json({ message: 'stats.zooniverse.org is now defunct in favor of our new stats service: eras.zooniverse.org. Please refer to ERAS API Docs: https://zooniverse.github.io/eras.' })]
[200, json({ message: 'stats.zooniverse.org is now defunct in favor of our new stats service: eras.zooniverse.org. Please refer to ERAS API Docs: https://zooniverse.github.io/eras.' })]
end

# sinkhole 404 & 400 responses
Expand Down

0 comments on commit 5777cf2

Please sign in to comment.