You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Steshin (Jira)" <ji...@apache.org> on 2023/03/07 15:57:00 UTC

[jira] [Created] (IGNITE-18980) Set proper successStatus on error in GridRestProcessor

Vladimir Steshin created IGNITE-18980:
-----------------------------------------

             Summary: Set proper successStatus on error in GridRestProcessor
                 Key: IGNITE-18980
                 URL: https://issues.apache.org/jira/browse/IGNITE-18980
             Project: Ignite
          Issue Type: Improvement
            Reporter: Vladimir Steshin


_GridRestResponse_ should obtain proper 'not-OK' status on error. Often, _GridRestResponse#getSuccessStatus()_ is `GridRestResponse#STATUS_SUCCESS` even if the response is actually an error. 

Probably, we should revise _GridRestResponse#setError(String)_. It should set/check an error status like _GridRestResponse(int status, @Nullable String err)_

A test attached.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)