RM-5645: Automate AC Prevent Classification Beyond Parents Classification: added checks for response code and message

This commit is contained in:
jcule
2017-10-05 22:46:28 +01:00
parent fe267c4172
commit 99084cb158

View File

@@ -429,6 +429,7 @@ public abstract class BaseAPI
case HttpStatus.SC_INTERNAL_SERVER_ERROR: case HttpStatus.SC_INTERNAL_SERVER_ERROR:
case HttpStatus.SC_BAD_REQUEST: case HttpStatus.SC_BAD_REQUEST:
case HttpStatus.SC_UNPROCESSABLE_ENTITY:
if (responseBody != null && responseBody.has(EXCEPTION_KEY)) if (responseBody != null && responseBody.has(EXCEPTION_KEY))
{ {
LOGGER.error("Request failed: " + responseBody.getString(EXCEPTION_KEY)); LOGGER.error("Request failed: " + responseBody.getString(EXCEPTION_KEY));