Vadim Pakhnushev created IGNITE-23421:
-----------------------------------------
Summary: Not found URLs respond with 409 instead of 404
Key: IGNITE-23421
URL: https://issues.apache.org/jira/browse/IGNITE-23421
Project: Ignite
Issue Type: Bug
Components: rest
Reporter: Vadim Pakhnushev
When cluster is not yet initialized (or in the process of initialization), any
URL that is not found responds with http code 409 and message "Cluster is not
initialized" instead of code 404 and message "Page not found".
This happens because we handle "not found" errors using special controller
{{GeneralErrorsController}}. When Micronaut can't find the controller for the
incoming request, it uses this controller to handle the error, but before that
it uses the {{ClusterStateHttpServerFilter}} which checks the path availability
using closed list of available endpoints, meaning that any endpoint which is
not in that list leads to the 409 response from this filter.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)