Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Count and Search API status codes are inconsistent (count does not return 400) #3585
I've got a query that produces a 400 when performing a search. However, when I use the same query to perform a count, a 200 status is returned.
The output from this gist is:
If you take out the "-o /dev/null", you can see that both the search and count produce errors in the "bad query" case, but the count API still returns a 200.