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)

Reply via email to