Add possibility to log both error response and throwable