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 8f26a764f2
commit 01147d40be

View File

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