Fix log invalid status code

Fix ReferenceError: statusCode is not defined