return a 400 error when accessing endpoints without the arguments
When accessing existing endpoints and forgetting the arguments, you get a 404 error. It's more correct to have a 400 error instead because the request is badly formulated.
Related to #1968 (closed)
Migrated from D5411 (view on Phabricator)