[jira] [Created] (IGNITE-12830) REST API - Return the right HTTP status code

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-12830) REST API - Return the right HTTP status code

Anton Vinogradov (Jira)
Koala Lam created IGNITE-12830:
----------------------------------

             Summary: REST API - Return the right HTTP status code
                 Key: IGNITE-12830
                 URL: https://issues.apache.org/jira/browse/IGNITE-12830
             Project: Ignite
          Issue Type: Improvement
    Affects Versions: 2.7.6
            Reporter: Koala Lam


For example, when the cluster is not in running stage, receiving a REST request would still return a 200 HTTP status code with below response payload :

{
    successStatus: 1,
    sessionToken: null,
    error: "Failed to handle request (received request while stopping grid).",
    response: null
}

 

Should REST API return a non-2xx status code instead?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)