log exception if RESTError status is 500